﻿// Decompiled with JetBrains decompiler
// Type: 我的小工具.我的工具
// Assembly: 开发辅助工具, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null
// MVID: F78E5980-5E94-4E46-ABDF-DC8C6CBF52AA
// Assembly location: K:\Tools\工具\开发辅助工具庆六一版\开发辅助工具2015-06-01\开发辅助工具.exe

using Microsoft.Win32;
using PetaPoco;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using 我的小工具.Properties;

namespace 我的小工具
{
  public class 我的工具 : Form
  {
    private static bool IsCloseForm = true;
    private string strIpAdress = "";
    private string strHostName = "";
    private sqlserverDB db = new sqlserverDB();
    private int appBit = util.Is64BitProcess() ? 64 : 32;
    private string RegRoot = "SOFTWARE\\mysoft";
    private string RegRoot64 = "SOFTWARE\\Wow6432Node\\mysoft";
    private List<我的工具.MyRegKey> listKey = new List<我的工具.MyRegKey>();
    private Dictionary<string, int> dicSitePool = new Dictionary<string, int>();
    private List<DataSource> listDataSource = new List<DataSource>();
    private Dictionary<string, SiteObj> dicSiteObj = new Dictionary<string, SiteObj>();
    private IContainer components = (IContainer) null;
    private MultiColumnComboBox multiColumnComboBox1;
    private FolderBrowserDialog folderBrowserDialog1;
    private TabPage tabPage2;
    private TabPage tabPage1;
    private Label label1;
    private Button button2;
    private TextBox txbSiteName;
    private TextBox DBName;
    private Label label2;
    private TabPage tabPage4;
    private TextBox txtIISKeyWord;
    private ListBox listSite;
    private LinkLabel linkLabel1;
    private GroupBox groupBox3;
    private Label label9;
    private TextBox txtSitePath;
    private Label label10;
    private TextBox txtPort;
    private Label label16;
    private TextBox txtSiteName;
    private Label label11;
    private Label label12;
    private ComboBox cboReg;
    private ComboBox txtAss;
    private Label label17;
    private TextBox txtDBName;
    private Label label15;
    private ComboBox txtServerName2;
    private Label label14;
    private ComboBox cboUserName;
    private Label label13;
    private ComboBox cboPwd;
    private GroupBox groupBox2;
    private ComboBox cbVersion;
    private RadioButton radioButton3;
    private RadioButton radioButton2;
    private RadioButton radioButton1;
    private Label label21;
    private TextBox txtVersion;
    private TextBox txtWorkFlowVsersion;
    private Label label20;
    private TextBox txtMapVersion;
    private Label label19;
    private GroupBox groupBox1;
    private Button button19;
    private Button button24;
    private Button button17;
    private Button button16;
    private Button button18;
    private Button button22;
    private Button button15;
    private PictureBox pictureBox1;
    private ComboBox comboBox1;
    private Label label18;
    private LinkLabel lblIISVer;
    private Button button11;
    private Button button14;
    private Button button13;
    private Button button12;
    private Button button20;
    private Button button10;
    private Button button23;
    private Button button9;
    private Button btn_CreateSite;
    private Button button8;
    private TabControl tabControl1;
    private GroupBox groupBox4;
    internal Button Button4;
    private Panel panel1;
    internal Button Button5;
    internal Button button1;
    private RichTextBox richTextBox1;
    private CheckBox checkBox1;
    private Panel panel3;
    private ListView listView1;
    private ColumnHeader columnHeader1;
    private ColumnHeader columnHeader2;
    private ColumnHeader columnHeader3;
    private ColumnHeader columnHeader4;
    private ColumnHeader columnHeader5;
    private ColumnHeader columnHeader6;
    private ColumnHeader columnHeader7;
    private ColumnHeader columnHeader8;
    private ColumnHeader columnHeader9;
    private Panel panel2;
    private Panel panelForHide;
    private TextBox txtSourceAdress;
    private ContextMenuStrip contextMenuStrip1;
    private ToolStripMenuItem ToolStripMenuItem1;
    private ToolStripMenuItem ToolStripMenuItem2;
    private ToolStripTextBox toolStripTextBox3;
    private ToolStripMenuItem 复制信息ToolStripMenuItem;
    private ToolStripMenuItem 版本号查询ToolStripMenuItem;
    private ToolTip toolTip1;
    private ContextMenuStrip contextMenuStrip2;
    private ToolStripMenuItem 用户设置ToolStripMenuItem;
    private ToolStripMenuItem dbName查询ToolStripMenuItem;
    private TabPage tpageTextMager;
    private SplitContainer splitContainer1;
    private ToolStrip toolStrip1;
    private ListView tmListFiles;
    private ToolStripButton tmTsBtnSelectFiles;
    private ToolStripButton tmTsBtnDeleteFile;
    private Button tmBtnSavePathSelect;
    private TextBox tmOutputPath;
    private Label label6;
    private Button tmBtnExec;
    private ToolStripButton tmTsMoveUp;
    private ToolStripButton tmTsMoveDown;
    private ToolStripButton tmTsClearAll;
    private NotifyIcon notifyIcon1;
    private ContextMenuStrip notifyContextMenu;
    private ToolStripMenuItem tmNTsMainUI;
    private ToolStripMenuItem tmNTsExit;
    private Button button3;
    private ToolStripMenuItem 清空TempfilesToolStripMenuItem;
    private BackgroundWorker backgroundWorker1;
    private LinkLabel linkLabel2;
    private ToolStripMenuItem 设置ToolStripMenuItem;
    private ToolStripMenuItem 设置ToolStripMenuItem1;

    public 我的工具()
    {
      this.InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
    }

    private void 注册表_Load(object sender, EventArgs e)
    {
      this.backgroundWorker1.DoWork += new DoWorkEventHandler(this.bw_WriteLog);
      this.strHostName = Dns.GetHostName();
      this.dicSiteObj = IISHelper.GetSiteNames();
      SoftDog.Init();
      this.strIpAdress = Dns.GetHostEntry(this.strHostName).AddressList.Length <= 1 ? (Dns.GetHostEntry(this.strHostName).AddressList.Length != 1 ? "" : Dns.GetHostEntry(this.strHostName).AddressList[0].ToString()) : Dns.GetHostEntry(this.strHostName).AddressList[1].ToString();
      this.linkLabel1.Text = "http://" + this.strHostName + (this.txtPort.Text == "" ? "" : ":" + this.txtPort.Text);
      this.linkLabel2.Text = "http://localhost" + (this.txtPort.Text == "" ? "" : ":" + this.txtPort.Text);
      this.comboBox1.SelectedItem = (object) "编译(Release)";
      this.dicSitePool = IISHelper.GetAppPoolName();
      this.LoadDataSources();
      this.loadList();
      this.iisLoad();
      this.GetDogCount();
      this.ShowIISVersion();
      this.listSite.DataSource = (object) this.SearchSiteName(this.txtIISKeyWord.Text);
      if (util.Is64BitProcess())
        this.Text = this.Text + "(64位)";
      Settings.Default.Reload();
    }

    private List<string> SearchSiteName(string strKeyWord)
    {
      List<string> stringList = new List<string>();
      foreach (KeyValuePair<string, SiteObj> keyValuePair in this.dicSiteObj)
      {
        SiteObj siteObj = keyValuePair.Value;
        if (keyValuePair.Key.ToUpper().Contains(strKeyWord.ToUpper()) || siteObj.SiteNameQuanPin.Contains(strKeyWord.ToUpper()) || siteObj.SiteNameDuanPin.Contains(strKeyWord.ToUpper()))
          stringList.Add(siteObj.SiteName);
      }
      return stringList;
    }

    private void LoadDataSources()
    {
      string[] strArray1 = ConfigurationManager.AppSettings["DataSources"].Split('|');
      List<string> stringList1 = new List<string>();
      List<string> stringList2 = new List<string>();
      List<string> stringList3 = new List<string>();
      this.listDataSource.Clear();
      foreach (string str in strArray1)
      {
        char[] chArray = new char[1]{ ',' };
        string[] strArray2 = str.Split(chArray);
        if (strArray2.Length >= 3)
        {
          DataSource dataSource = new DataSource();
          dataSource.ServerName = strArray2[0];
          dataSource.UserID = strArray2[1];
          dataSource.PassWord = strArray2[2];
          if (!stringList1.Contains(dataSource.ServerName))
            stringList1.Add(dataSource.ServerName);
          if (!stringList2.Contains(dataSource.UserID))
            stringList2.Add(dataSource.UserID);
          if (!stringList3.Contains(dataSource.PassWord))
            stringList3.Add(dataSource.PassWord);
          this.listDataSource.Add(dataSource);
        }
        else
          break;
      }
      this.txtServerName2.DataSource = (object) stringList1;
      this.cboUserName.DataSource = (object) stringList2;
      this.cboPwd.DataSource = (object) stringList3;
    }

    private void loadList()
    {
      this.cboReg.Items.Clear();
      RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(util.Is64BitProcess() ? this.RegRoot64 : this.RegRoot, true);
      this.listKey.Clear();
      if (registryKey == null)
        registryKey = Registry.LocalMachine.CreateSubKey(util.Is64BitProcess() ? this.RegRoot64 : this.RegRoot);
      foreach (string subKeyName in registryKey.GetSubKeyNames())
      {
        我的工具.MyRegKey myRegKey = new 我的工具.MyRegKey();
        myRegKey.KeyName = subKeyName;
        if (registryKey.OpenSubKey(subKeyName).GetValue("ServerName") != null)
        {
          myRegKey.ServerName = registryKey.OpenSubKey(subKeyName).GetValue("ServerName") == null ? "" : registryKey.OpenSubKey(subKeyName).GetValue("ServerName").ToString();
          myRegKey.DBName = registryKey.OpenSubKey(subKeyName).GetValue("DBName") == null ? "" : registryKey.OpenSubKey(subKeyName).GetValue("DBName").ToString();
          myRegKey.UserName = registryKey.OpenSubKey(subKeyName).GetValue("UserName") == null ? "" : registryKey.OpenSubKey(subKeyName).GetValue("UserName").ToString();
          myRegKey.SaPassword = registryKey.OpenSubKey(subKeyName).GetValue("SaPassword") == null ? "" : registryKey.OpenSubKey(subKeyName).GetValue("SaPassword").ToString();
          this.listKey.Add(myRegKey);
          this.cboReg.Items.Add((object) myRegKey.KeyName);
        }
      }
    }

    private void loadListFromDb()
    {
      Sql sql = new Sql("Where 1=1", new object[0]);
      if (this.txbSiteName.Text != "")
        sql.Append("AND SiteName like '%" + this.txbSiteName.Text.Replace("'", "''") + "%'", new object[0]);
      if (this.DBName.Text != "")
        sql.Append("AND DBName like '%" + this.DBName.Text.Replace("'", "''") + "%'", new object[0]);
      sql.OrderBy((object) "SiteID");
      IEnumerable<dp_WebSite> dpWebSites = this.db.Query<dp_WebSite>(sql);
      this.listView1.Items.Clear();
      int num = 0;
      foreach (dp_WebSite dpWebSite in dpWebSites)
      {
        ++num;
        this.listView1.Items.Add(new ListViewItem(new string[9]
        {
          num.ToString(),
          dpWebSite.SiteName,
          dpWebSite.SiteAddress,
          dpWebSite.ServerName,
          dpWebSite.DbName,
          dpWebSite.UserId,
          dpWebSite.Password,
          !dpWebSite.ModifyDate.HasValue ? "" : dpWebSite.ModifyDate.Value.ToString("yyyy-MM-dd HH:mm:ss"),
          dpWebSite.Remark == null ? "" : dpWebSite.Remark
        })
        {
          Tag = (object) dpWebSite
        });
      }
    }

    private void button2_Click(object sender, EventArgs e)
    {
      try
      {
        this.loadListFromDb();
        for (int index = 0; index <= this.listView1.Items.Count - 1; ++index)
          this.listView1.Items[index].SubItems[0].Text = (index + 1).ToString();
      }
      catch (Exception ex)
      {
        int num = (int) MessageBox.Show(ex.Message);
      }
      this.WriteLog(sender);
    }

    private void textBox1_DragEnter(object sender, DragEventArgs e)
    {
      e.Effect = !e.Data.GetDataPresent(DataFormats.FileDrop) ? DragDropEffects.None : DragDropEffects.Link;
      this.WriteLog(sender);
    }

    private void textBox1_DragDrop(object sender, DragEventArgs e)
    {
      (sender as TextBox).Text = ((Array) e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString();
      this.WriteLog(sender);
    }

    private void button8_Click(object sender, EventArgs e)
    {
      this.dicSiteObj = IISHelper.GetSiteNames();
      this.loadList();
      this.dicSitePool = IISHelper.GetAppPoolName();
      this.ShowIISVersion();
      this.listSite.DataSource = (object) this.SearchSiteName(this.txtIISKeyWord.Text);
      this.WriteLog(sender);
    }

    private void iisLoad()
    {
      foreach (KeyValuePair<string, int> keyValuePair in this.dicSitePool)
        this.txtAss.Items.Add((object) keyValuePair.Key);
    }

    private void listSite_SelectedIndexChanged(object sender, EventArgs e)
    {
      string @string = this.listSite.SelectedItem.ToString();
      SiteObj siteObj = this.dicSiteObj[@string];
      this.txtSiteName.Text = siteObj.SiteName;
      this.txtSitePath.Text = string.IsNullOrEmpty(siteObj.SitePath) ? IISHelper.GetSitePath(@string) : siteObj.SitePath;
      if (SoftDog.IsUseable)
      {
        if (!SoftDog.getIsZydog())
        {
          this.button20.Text = "非自动狗";
          this.button20.ForeColor = System.Drawing.Color.Red;
        }
      }
      else
      {
        this.button20.Text = "无狗";
        this.button20.ForeColor = System.Drawing.Color.Gray;
      }
      this.txtAss.Text = siteObj.PoolName;
      if (this.dicSitePool.ContainsKey(this.txtAss.Text))
        this.appBit = this.dicSitePool[this.txtAss.Text];
      this.txtPort.Text = siteObj.Port;
      if (System.IO.File.Exists(this.txtSitePath.Text + "\\bin\\License.xml"))
      {
        XmlDocument xmlDocument = new XmlDocument();
        xmlDocument.Load(this.txtSitePath.Text + "\\bin\\License.xml");
        XmlNode xmlNode = xmlDocument.SelectSingleNode("//dbconn[@appname='Default']");
        if (xmlNode != null)
          this.cboReg.Text = xmlNode.Attributes["regname"].Value;
      }
      else
      {
        this.cboReg.Text = "";
        this.txtServerName2.Text = "";
        this.txtDBName.Text = "";
        this.cboUserName.Text = "";
        this.cboPwd.Text = "";
      }
      this.ShowReadOnlyBox();
      this.radioButton1.Checked = true;
      this.ShowVersion();
      this.GetDogCount();
      this.GetSourceAdress();
    }

    private void ShowReadOnlyBox()
    {
      if (System.IO.File.Exists(this.txtSitePath.Text + "\\bin\\map.dll"))
      {
        if (我的工具.IsFileReadOnly(this.txtSitePath.Text + "\\bin\\map.dll"))
          this.pictureBox1.BackColor = System.Drawing.Color.Red;
        else
          this.pictureBox1.BackColor = System.Drawing.Color.Green;
      }
      else
        this.pictureBox1.BackColor = System.Drawing.Color.Gray;
    }

    private void cboReg_TextChanged(object sender, EventArgs e)
    {
      foreach (我的工具.MyRegKey myRegKey in this.listKey)
      {
        if (string.Compare(this.cboReg.Text, myRegKey.KeyName, true) == 0)
        {
          this.txtServerName2.Text = myRegKey.ServerName;
          this.txtDBName.Text = myRegKey.DBName;
          this.cboUserName.Text = myRegKey.UserName;
          this.cboPwd.Text = myRegKey.SaPassword;
          break;
        }
        this.txtServerName2.Text = "";
        this.txtDBName.Text = "";
        this.cboUserName.Text = "";
        this.cboPwd.Text = "";
      }
    }

    private void treeView1_AfterCheck(object sender, TreeViewEventArgs e)
    {
      bool @checked = e.Node.Checked;
      我的工具.setTreeNodeChecked(e.Node, @checked);
      this.WriteLog(sender);
    }

    private static void setTreeNodeChecked(TreeNode e, bool isChecked)
    {
      foreach (TreeNode node in e.Nodes)
      {
        node.Checked = isChecked;
        我的工具.setTreeNodeChecked(node, isChecked);
      }
    }

    private void txtPort_MouseDoubleClick(object sender, EventArgs e)
    {
      if (!string.IsNullOrEmpty(this.txtPort.Text))
        Process.Start("Explorer", "http://localhost:" + this.txtPort.Text);
      this.WriteLog(sender);
    }

    private void button10_Click(object sender, EventArgs e)
    {
      if (IISHelper.RecycleAppPool(this.txtAss.Text))
      {
        int num = (int) MessageBox.Show("回收成功！");
      }
      this.SaveWebSite(false, false);
      this.WriteLog(sender);
    }

    private void button9_Click(object sender, EventArgs e)
    {
      if (System.IO.File.Exists(this.txtSitePath.Text + "\\bin\\License.xml"))
      {
        XmlDocument xmlDocument = new XmlDocument();
        xmlDocument.Load(this.txtSitePath.Text + "\\bin\\License.xml");
        XmlNode xmlNode = xmlDocument.SelectSingleNode("//dbconn[@appname='Default']");
        if (xmlNode != null && xmlNode.Attributes["regname"].Value != this.cboReg.Text)
        {
          xmlNode.Attributes["regname"].Value = this.cboReg.Text;
          if (我的工具.IsFileReadOnly(this.txtSitePath.Text + "\\bin\\License.xml"))
          {
            int num = (int) MessageBox.Show("License.xml只读，请签出文件或是去掉文件只读属性！");
            return;
          }
          xmlDocument.Save(this.txtSitePath.Text + "\\bin\\License.xml");
        }
      }
      this.SaveRegDataBaseSetting(this.cboReg.Text);
      this.SaveWebSite(true, false);
      int num1 = (int) MessageBox.Show("保存成功！");
      this.WriteLog(sender);
    }

    private void SaveRegDataBaseSetting(string strRegName)
    {
      RegistryKey subKey = Registry.LocalMachine.OpenSubKey(util.Is64BitProcess() ? this.RegRoot64 : this.RegRoot, true).CreateSubKey(this.cboReg.Text);
      subKey.SetValue("ServerName", (object) this.txtServerName2.Text);
      subKey.SetValue("DBName", (object) this.txtDBName.Text);
      subKey.SetValue("UserName", (object) this.cboUserName.Text);
      subKey.SetValue("SaPassword", (object) Cryptography.EnCode(this.cboPwd.Text));
      subKey.SetValue("ServerProt", (object) "1433");
      subKey.SetValue("IsConnectSl", (object) "0");
      subKey.SetValue("IsRead", (object) "1");
      this.loadList();
    }

    private void button13_Click(object sender, EventArgs e)
    {
      string slnFilePath = new SlnHelper().GetSlnFilePath(!this.txtSitePath.Text.ToLower().EndsWith("map") ? this.txtSitePath.Text : this.txtSitePath.Text.Substring(0, this.txtSitePath.Text.Length - 3));
      ProcessStartInfo startInfo = new ProcessStartInfo();
      startInfo.FileName = slnFilePath;
      startInfo.Arguments = "";
      try
      {
        Process.Start(startInfo);
      }
      catch (Win32Exception ex)
      {
        int num = (int) MessageBox.Show((IWin32Window) this, ex.Message);
        return;
      }
      this.WriteLog(sender);
    }

    private void button14_Click(object sender, EventArgs e)
    {
      if (!Directory.Exists(this.txtSitePath.Text))
        return;
      string fullName = new DirectoryInfo(this.txtSitePath.Text).Parent.FullName;
      List<string> stringList = new List<string>();
      stringList.AddRange((IEnumerable<string>) Directory.GetDirectories(fullName, "Bin", SearchOption.AllDirectories));
      stringList.AddRange((IEnumerable<string>) Directory.GetDirectories(fullName, "Obj", SearchOption.AllDirectories));
      foreach (string path in stringList)
      {
        foreach (string file in Directory.GetFiles(path, "*", SearchOption.AllDirectories))
          System.IO.File.SetAttributes(file, FileAttributes.Normal);
      }
      if (Directory.Exists(this.txtSitePath.Text + "\\TempFiles"))
      {
        foreach (string file in Directory.GetFiles(this.txtSitePath.Text + "\\TempFiles", "*", SearchOption.AllDirectories))
        {
          System.IO.File.SetAttributes(file, FileAttributes.Normal);
          System.IO.File.Delete(file);
        }
      }
      this.ShowReadOnlyBox();
      int num = (int) MessageBox.Show("去只读完成");
      this.WriteLog(sender);
    }

    private void txtPort_MouseDoubleClick(object sender, MouseEventArgs e)
    {
    }

    private void txtIISKeyWord_TextChanged(object sender, EventArgs e)
    {
      this.listSite.DataSource = (object) this.SearchSiteName(this.txtIISKeyWord.Text);
    }

    private void ShowIISVersion()
    {
      this.lblIISVer.Text = "IIS" + IISHelper.GetIISMajorVersion().ToString() + "(" + this.appBit.ToString() + ")";
    }

    private void txtServerName2_SelectedIndexChanged(object sender, EventArgs e)
    {
      foreach (DataSource dataSource in this.listDataSource)
      {
        if (dataSource.ServerName.ToLower() == this.txtServerName2.Text.ToLower())
        {
          this.cboUserName.Text = dataSource.UserID;
          this.cboPwd.Text = dataSource.PassWord;
        }
      }
    }

    private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
      new Process()
      {
        StartInfo = {
          FileName = "IEXPLORE.EXE",
          Arguments = this.linkLabel1.Text
        }
      }.Start();
      this.SaveWebSite(false, false);
      this.WriteLog(sender);
    }

    private void txtPort_TextChanged(object sender, EventArgs e)
    {
      this.linkLabel1.Text = "http://" + Dns.GetHostName() + (this.txtPort.Text == "" ? "" : ":" + this.txtPort.Text);
      this.linkLabel2.Text = "http://localhost" + (this.txtPort.Text == "" ? "" : ":" + this.txtPort.Text);
    }

    private void button11_Click(object sender, EventArgs e)
    {
      if (this.txtSitePath.Text.Length < 3)
        return;
      string slnFilePath = new SlnHelper().GetSlnFilePath(!this.txtSitePath.Text.ToLower().EndsWith("map") ? this.txtSitePath.Text : this.txtSitePath.Text.Substring(0, this.txtSitePath.Text.Length - 3));
      if (this.IsVs2003(slnFilePath))
      {
        int num = (int) MessageBox.Show("暂不支持VS2003编译");
      }
      else
      {
        string format = "/K \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe \"{0}\"{1}\"";
        string str = "";
        if (this.comboBox1.Text.Contains("重新"))
          str += " /t:Rebuild";
        if (this.comboBox1.Text.Contains("Release"))
          str += " /p:Configuration=Release";
        if (!Directory.Exists(this.txtSitePath.Text))
          return;
        string fullName = new DirectoryInfo(this.txtSitePath.Text).Parent.FullName;
        if (this.pictureBox1.BackColor == System.Drawing.Color.Red)
        {
          List<string> stringList = new List<string>();
          stringList.AddRange((IEnumerable<string>) Directory.GetDirectories(fullName, "Bin", SearchOption.AllDirectories));
          stringList.AddRange((IEnumerable<string>) Directory.GetDirectories(fullName, "Obj", SearchOption.AllDirectories));
          foreach (string path in stringList)
          {
            foreach (string file in Directory.GetFiles(path, "*", SearchOption.AllDirectories))
              System.IO.File.SetAttributes(file, FileAttributes.Normal);
          }
          if (Directory.Exists(this.txtSitePath.Text + "\\TempFiles"))
          {
            foreach (string file in Directory.GetFiles(this.txtSitePath.Text + "\\TempFiles", "*", SearchOption.AllDirectories))
            {
              System.IO.File.SetAttributes(file, FileAttributes.Normal);
              System.IO.File.Delete(file);
            }
          }
          this.ShowReadOnlyBox();
        }
        Process.Start("cmd.exe", string.Format(format, (object) slnFilePath, (object) str));
        this.SaveWebSite(false, false);
        this.WriteLog(sender);
      }
    }

    private void button18_Click(object sender, EventArgs e)
    {
      int num = (int) MessageBox.Show("待开发\r\nlxt.dll文件：5.5.1.10824\r\n数据库：5.5.1.10824\r\nLisense.Xml：5.5.1.10824");
    }

    public void radioBtn_CheckedChange(object sender, EventArgs e)
    {
      if (!((RadioButton) sender).Checked)
        return;
      switch (((Control) sender).Text.ToString())
      {
      }
    }

    private void button19_Click(object sender, EventArgs e)
    {
      string str = ConfigurationManager.AppSettings["KSJMPATH"];
      if (string.IsNullOrEmpty(str) || !System.IO.File.Exists(str))
      {
        this.设置ToolStripMenuItem1_Click(sender, e);
      }
      else
      {
        if (this.txtServerName2.Text == "")
        {
          Process.Start(new ProcessStartInfo(str)
          {
            WorkingDirectory = Path.GetDirectoryName(str)
          });
        }
        else
        {
          string format = "{0} {1} {2} {3}";
          Process.Start(new ProcessStartInfo(str, string.Format(format, (object) this.txtServerName2.Text, (object) this.txtDBName.Text, (object) this.cboUserName.Text, (object) this.cboPwd.Text))
          {
            WorkingDirectory = Path.GetDirectoryName(str)
          });
        }
        this.WriteLog(sender);
      }
    }

    private void button22_Click(object sender, EventArgs e)
    {
      string str = ConfigurationManager.AppSettings["SSMSPATH"];
      if (!System.IO.File.Exists(str))
      {
        this.设置ToolStripMenuItem1_Click(sender, e);
      }
      else
      {
        if (this.txtServerName2.Text == "")
        {
          Process.Start(str);
        }
        else
        {
          string format = " -S {0} -d {1} -U {2} -P {3}";
          Process.Start(str, string.Format(format, (object) this.txtServerName2.Text, (object) this.txtDBName.Text, (object) this.cboUserName.Text, (object) this.cboPwd.Text));
        }
        this.WriteLog(sender);
      }
    }

    private void button18_Click_1(object sender, EventArgs e)
    {
      string str = ConfigurationManager.AppSettings["PROFILER"];
      if (string.IsNullOrEmpty(str) || !System.IO.File.Exists(str))
      {
        this.设置ToolStripMenuItem1_Click(sender, e);
      }
      else
      {
        if (this.txtServerName2.Text == "")
        {
          Process.Start(str);
        }
        else
        {
          string format = " -S {0} -d {1} -U {2} -P {3}";
          Process.Start(str, string.Format(format, (object) this.txtServerName2.Text, (object) this.txtDBName.Text, (object) this.cboUserName.Text, (object) this.cboPwd.Text));
        }
        this.WriteLog(sender);
      }
    }

    private void txtIISKeyWord_KeyDown(object sender, KeyEventArgs e)
    {
      switch (e.KeyCode)
      {
        case Keys.Up:
          this.listSite.Focus();
          break;
        case Keys.Down:
          this.listSite.Focus();
          break;
      }
      this.WriteLog(sender);
    }

    private void 我的工具_Shown(object sender, EventArgs e)
    {
      this.txtIISKeyWord.Focus();
    }

    private string GetDbVersion(string strDllName)
    {
      try
      {
        SQLHelper.SetConnSting(this.txtServerName2.Text, this.txtDBName.Text, this.cboUserName.Text, this.cboPwd.Text);
        if (!SQLHelper.dbCanUse)
          return "";
        return SQLHelper.GetDataItemString(string.Format("SELECT TOP 1 Version FROM dbo.myApplication WHERE DllName = '{0}'", (object) strDllName));
      }
      catch
      {
        return "";
      }
    }

    private bool PingDataBase()
    {
      try
      {
        SQLHelper.SetConnSting(this.txtServerName2.Text, this.txtDBName.Text, this.cboUserName.Text, this.cboPwd.Text);
        SQLHelper.GetDataItemString("Select getdate()");
        SQLHelper.dbCanUse = true;
      }
      catch (Exception ex)
      {
        SQLHelper.dbCanUse = false;
        int num = (int) MessageBox.Show(ex.Message);
      }
      return SQLHelper.dbCanUse;
    }

    private void ExeInSelectDBBatch(string[] arrSQL)
    {
      if (string.IsNullOrEmpty(this.txtServerName2.Text) || string.IsNullOrEmpty(this.txtDBName.Text) || string.IsNullOrEmpty(this.cboUserName.Text) || string.IsNullOrEmpty(this.cboPwd.Text))
      {
        int num1 = (int) MessageBox.Show("数据库未配置");
      }
      else
      {
        try
        {
          StringBuilder stringBuilder = new StringBuilder();
          SQLHelper.SetConnSting(this.txtServerName2.Text, this.txtDBName.Text, this.cboUserName.Text, this.cboPwd.Text);
          foreach (string str in arrSQL)
          {
            if (str.Trim().ToLower() == "go")
            {
              if (stringBuilder.ToString().Length > 0)
                SQLHelper.ExecuteSql(stringBuilder.ToString());
              stringBuilder = new StringBuilder();
            }
            else
              stringBuilder.AppendLine(str);
          }
          if (stringBuilder.ToString().Length > 0)
            SQLHelper.ExecuteSql(stringBuilder.ToString());
          int num2 = (int) MessageBox.Show("执行成功");
        }
        catch (Exception ex)
        {
          int num2 = (int) MessageBox.Show(ex.Message);
        }
      }
    }

    private bool ExeInSelectDB(string strSQL)
    {
      if (string.IsNullOrEmpty(this.txtServerName2.Text) || string.IsNullOrEmpty(this.txtDBName.Text) || string.IsNullOrEmpty(this.cboUserName.Text) || string.IsNullOrEmpty(this.cboPwd.Text))
      {
        int num = (int) MessageBox.Show("数据库未配置");
        return false;
      }
      try
      {
        SQLHelper.SetConnSting(this.txtServerName2.Text, this.txtDBName.Text, this.cboUserName.Text, this.cboPwd.Text);
        SQLHelper.ExecuteSql(strSQL);
        int num = (int) MessageBox.Show("执行成功");
        return true;
      }
      catch (Exception ex)
      {
        int num = (int) MessageBox.Show(ex.Message);
        return false;
      }
    }

    private void button15_Click(object sender, EventArgs e)
    {
      this.ExeInSelectDB("update myUser set password =  'D41D8CD98F00B204E9800998ECF8427E'");
      this.WriteLog(sender);
    }

    private void button16_Click(object sender, EventArgs e)
    {
      this.ExeInSelectDB("UPDATE dbo.mySite SET SitePath = ''");
      this.WriteLog(sender);
    }

    private void button17_Click(object sender, EventArgs e)
    {
      this.ExeInSelectDBBatch(System.IO.File.ReadAllLines(Application.StartupPath + "/SQL/ERP301数据库执行SQL.sql", Encoding.Default));
      this.WriteLog(sender);
    }

    private void lblIISVer_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
      Process.Start("inetmgr");
      this.WriteLog(sender);
    }

    private void ShowVersion()
    {
      if (this.radioButton1.Checked)
      {
        this.txtMapVersion.Text = this.GetFileVersion(this.txtSitePath.Text + "\\bin\\Mysoft.Map.Core.dll");
        this.txtWorkFlowVsersion.Text = this.GetFileVersion(this.txtSitePath.Text + "\\bin\\Mysoft.Map.Workflow.dll");
        this.txtVersion.Text = this.GetFileVersion(this.txtSitePath.Text + "\\bin\\" + this.cbVersion.Text + ".dll");
      }
      if (this.radioButton2.Checked && System.IO.File.Exists(this.txtSitePath.Text + "\\bin\\License.xml"))
      {
        XmlDocument xmlDocument = new XmlDocument();
        xmlDocument.Load(this.txtSitePath.Text + "\\bin\\License.xml");
        XmlNode xmlNData = xmlDocument.DocumentElement.SelectSingleNode("data");
        this.txtMapVersion.Text = this.GetXmlVersion(xmlNData, "Mysoft.Map.Core.dll");
        this.txtWorkFlowVsersion.Text = this.GetXmlVersion(xmlNData, "Mysoft.Map.Workflow.dll");
        this.txtVersion.Text = this.GetXmlVersion(xmlNData, this.cbVersion.Text + ".dll");
      }
      if (!this.radioButton3.Checked || !this.PingDataBase())
        return;
      this.txtMapVersion.Text = this.GetDbVersion("Mysoft.Map.Core.dll");
      this.txtWorkFlowVsersion.Text = this.GetDbVersion("Mysoft.Map.Workflow.dll");
      this.txtVersion.Text = this.GetDbVersion(this.cbVersion.Text + ".dll");
    }

    public static bool IsFileReadOnly(string FileName)
    {
      return new FileInfo(FileName).IsReadOnly;
    }

    public string GetFileVersion(string FileName)
    {
      if (System.IO.File.Exists(FileName))
        return FileVersionInfo.GetVersionInfo(FileName).FileVersion;
      return "";
    }

    private string GetXmlVersion(XmlNode xmlNData, string strDllname)
    {
      try
      {
        XmlNode xmlNode = xmlNData.SelectSingleNode("product/system/subsystem[translate(@dllname, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')=\"" + strDllname.ToLower() + "\"]");
        if (xmlNode != null)
          return xmlNode.Attributes["version"].Value;
        return "";
      }
      catch
      {
        return "";
      }
    }

    private string GetDBVersion(XmlNode xmlNData, string strDllname)
    {
      try
      {
        XmlNode xmlNode = xmlNData.SelectSingleNode("product/system/subsystem[translate(@dllname, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')=\"" + strDllname.ToLower() + "\"]");
        if (xmlNode != null)
          return xmlNode.Attributes["version"].Value;
        return "";
      }
      catch
      {
        return "";
      }
    }

    private void button24_Click(object sender, EventArgs e)
    {
      SQLHelper.SetConnSting(this.txtServerName2.Text, this.txtDBName.Text, this.cboUserName.Text, this.cboPwd.Text);
      try
      {
        SQLHelper.ExecuteSql("select getdate()");
        int num = (int) new frmBizParamSet().ShowDialog((IWin32Window) this);
      }
      catch (Exception ex)
      {
        int num = (int) MessageBox.Show("连接不可用:" + ex.Message);
      }
      this.WriteLog(sender);
    }

    private void button20_Click(object sender, EventArgs e)
    {
      if (!SoftDog.IsUseable)
        return;
      if (this.button20.Text == "非自动狗")
      {
        if (MessageBox.Show("确定强力修复狗信息吗？", "确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.OK)
        {
          SoftDog.ReWriteDog();
          this.GetDogCount();
          return;
        }
      }
      try
      {
        SoftDog.WriteDog();
        this.GetDogCount();
      }
      catch (Exception ex)
      {
        int num = (int) MessageBox.Show(ex.Message);
      }
      this.SaveWebSite(false, false);
      this.WriteLog(sender);
    }

    private void GetDogCount()
    {
      if (!SoftDog.IsUseable)
        return;
      if (!SoftDog.getIsZydog())
      {
        this.button20.Text = "非自动狗";
        this.button20.ForeColor = System.Drawing.Color.Red;
      }
      else
      {
        try
        {
          int count = SoftDog.GetCount();
          this.button20.Text = "(" + count.ToString() + ")狗充值";
          if (count < 80)
            this.button20.ForeColor = System.Drawing.Color.Red;
        }
        catch (Exception ex)
        {
          int num = (int) MessageBox.Show(ex.Message);
        }
      }
    }

    private void button23_Click(object sender, EventArgs e)
    {
      this.SaveWebSite(true, false);
      this.WriteLog(sender);
    }

    private void WriteLog(object sender)
    {
      if (this.backgroundWorker1.IsBusy)
        return;
      this.backgroundWorker1.RunWorkerAsync(sender);
    }

    private void bw_WriteLog(object sender, DoWorkEventArgs e)
    {
      this.PostLog(e.Argument);
    }

    private void PostLog(object sender)
    {
      if (sender.GetType().ToString() == "System.Windows.Forms.Button")
        AppMng.LogWrite(((Control) sender).Text, "Button", Dns.GetHostName());
      else if (sender.GetType().ToString() == "System.Windows.Forms.TextBox")
        AppMng.LogWrite(((Control) sender).Text, "TextBox", Dns.GetHostName());
      else if (sender.GetType().ToString() == "System.Windows.Forms.RadioButton")
        AppMng.LogWrite(((Control) sender).Text, "RadioButton", Dns.GetHostName());
      else if (sender.GetType().ToString() == "System.Windows.Forms.ComboBox")
        AppMng.LogWrite(((Control) sender).Text, "ComboBox", Dns.GetHostName());
      else
        AppMng.LogWrite(sender.ToString(), sender.GetType().ToString(), Dns.GetHostName());
    }

    private bool DbBaseIsOK()
    {
      try
      {
        this.db.OpenSharedConnection();
        return true;
      }
      catch
      {
        return false;
      }
      finally
      {
        this.db.CloseSharedConnection();
      }
    }

    private bool IsVs2003(string strSlnFilePath)
    {
      return new SlnHelper().GetFormatVersion(strSlnFilePath) == "8.00";
    }

    private void GetSourceAdress()
    {
      this.txtSourceAdress.Text = "";
      string str;
      if (this.txtSitePath.Text.ToLower().EndsWith("map"))
      {
        SlnHelper slnHelper = new SlnHelper();
        string strHomePath = this.txtSitePath.Text.Substring(0, this.txtSitePath.Text.Length - 3);
        string slnFilePath = slnHelper.GetSlnFilePath(strHomePath);
        str = slnHelper.GetTFSAdrress(slnFilePath);
        if (string.IsNullOrEmpty(str))
          str = slnHelper.GetVSSAdrress(slnFilePath + "\\mssccprj.scc");
      }
      else
        str = "";
      this.txtSourceAdress.Text = string.IsNullOrEmpty(str) ? "" : str;
      if (this.txtSourceAdress.Text.EndsWith("erp_code") || this.txtSourceAdress.Text.EndsWith("productdev"))
        this.txtSourceAdress.ForeColor = System.Drawing.Color.Red;
      else
        this.txtSourceAdress.ForeColor = System.Drawing.Color.Black;
    }

    public void SaveWebSite(bool reCover = true, bool showMsg = false)
    {
      try
      {
        dp_WebSite dpWebSite = this.db.SingleOrDefault<dp_WebSite>("WHERE SiteName=@0 AND HostName=@1 AND DbName = @2 AND ServerName = @3 ", (object) new AnsiString(this.txtSiteName.Text), (object) new AnsiString(Dns.GetHostName()), (object) new AnsiString(this.txtDBName.Text), (object) new AnsiString(this.txtServerName2.Text));
        if (dpWebSite == null)
          dpWebSite = new dp_WebSite();
        else if (!reCover)
          return;
        dpWebSite.SiteName = this.txtSiteName.Text;
        dpWebSite.HostName = this.strHostName;
        dpWebSite.IpAddress = this.strIpAdress;
        dpWebSite.AppPool = this.txtAss.Text;
        dpWebSite.SitePort = new int?(Convert.ToInt32(this.txtPort.Text));
        dpWebSite.SiteAddress = this.linkLabel1.Text;
        dpWebSite.SitePath = this.txtSitePath.Text;
        dpWebSite.RegName = this.cboReg.Text;
        dpWebSite.ServerName = this.txtServerName2.Text;
        dpWebSite.DbName = this.txtDBName.Text;
        dpWebSite.UserId = this.cboUserName.Text;
        dpWebSite.Password = this.cboPwd.Text;
        dpWebSite.ModifyDate = new DateTime?(DateTime.Now);
        dpWebSite.Creater = Environment.UserName;
        dpWebSite.SourceAdress = this.txtSourceAdress.Text;
        dpWebSite.Save();
      }
      catch (Exception ex)
      {
        if (showMsg)
        {
          int num = (int) MessageBox.Show(ex.Message);
        }
      }
    }

    private void txtSitePath_DoubleClick(object sender, EventArgs e)
    {
      if (Directory.Exists(this.txtSitePath.Text))
        Process.Start("Explorer", "/select," + this.txtSitePath.Text + "\\web.config");
      this.WriteLog(sender);
    }

    private void Button4_Click_1(object sender, EventArgs e)
    {
      string[] lines = this.richTextBox1.Lines;
      if (lines.Length == 0)
        return;
      for (int index = 0; index <= lines.Length - 1; ++index)
      {
        string str = lines[index].TrimStart('"').TrimEnd('_').TrimEnd(' ').TrimEnd('&').TrimEnd(' ').TrimEnd('"');
        if (!string.IsNullOrEmpty(str))
          lines[index] = index == lines.Length - 1 ? "                        \" " + str + " \"" : "                        \" " + str + " \" & _";
      }
      this.richTextBox1.Lines = lines;
      this.WriteLog(sender);
    }

    private void Button5_Click_1(object sender, EventArgs e)
    {
      string[] lines = this.richTextBox1.Lines;
      if (lines.Length == 0)
        return;
      for (int index = 0; index <= lines.Length - 1; ++index)
      {
        string str = lines[index].TrimStart(' ').TrimStart('"').TrimEnd('_').TrimEnd(' ').TrimEnd('&').TrimEnd(' ').TrimEnd('"');
        if (!string.IsNullOrEmpty(str))
          lines[index] = str;
      }
      this.richTextBox1.Lines = lines;
      this.WriteLog(sender);
    }

    private void button1_Click_1(object sender, EventArgs e)
    {
      string[] lines = this.richTextBox1.Lines;
      if (lines.Length == 0)
        return;
      for (int index = 0; index <= lines.Length - 1; ++index)
      {
        string str = lines[index].Trim().TrimStart('\'').Trim().TrimEnd(',').TrimEnd('\'');
        if (!string.IsNullOrEmpty(str))
        {
          lines[index] = str;
          lines[index] = index == lines.Length - 1 ? "'" + str + "'" : "'" + str + "',";
        }
      }
      lines[0] = "IN (" + lines[0];
      lines[lines.Length - 1] = lines[lines.Length - 1] + ")";
      this.richTextBox1.Lines = lines;
      this.WriteLog(sender);
    }

    private void checkBox1_CheckedChanged(object sender, EventArgs e)
    {
      this.richTextBox1.WordWrap = this.checkBox1.Checked;
    }

    private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
    {
      if (this.listView1.Columns[e.Column].Tag == null)
        this.listView1.Columns[e.Column].Tag = (object) true;
      this.listView1.Columns[e.Column].Tag = !(bool) this.listView1.Columns[e.Column].Tag ? (object) true : (object) false;
      this.listView1.ListViewItemSorter = (IComparer) new ListViewSort(e.Column, this.listView1.Columns[e.Column].Tag);
      this.listView1.Sort();
      for (int index = 0; index <= this.listView1.Items.Count - 1; ++index)
        this.listView1.Items[index].SubItems[0].Text = (index + 1).ToString();
      this.WriteLog(sender);
    }

    private void listView1_DoubleClick(object sender, EventArgs e)
    {
      frmWebSite frmWebSite = new frmWebSite();
      frmWebSite.WebSite = (dp_WebSite) this.listView1.SelectedItems[0].Tag;
      if (frmWebSite.ShowDialog((IWin32Window) this) == DialogResult.OK)
      {
        frmWebSite.WebSite.Update((IEnumerable<string>) new string[2]
        {
          "SourceAdress",
          "Remark"
        });
        this.listView1.SelectedItems[0].Tag = (object) frmWebSite.WebSite;
        this.listView1.SelectedItems[0].SubItems[8].Text = frmWebSite.WebSite.Remark;
      }
      this.WriteLog(sender);
    }

    private void txtSitePath_MouseDoubleClick(object sender, EventArgs e)
    {
      if (this.toolStripTextBox3.Text == "")
        this.toolStripTextBox3.Text = "根据URL地址打开";
      this.contextMenuStrip1.Show((Control) (sender as Button), (sender as Button).PointToClient(Cursor.Position), ToolStripDropDownDirection.BelowRight);
      this.WriteLog(sender);
    }

    private void ToolStripMenuItem1_Click(object sender, EventArgs e)
    {
      if (Directory.Exists(this.txtSitePath.Text))
      {
        string path = this.txtSitePath.Text + "\\web.config";
        if (System.IO.File.Exists(path))
          Process.Start("Explorer", "/select," + path);
        else
          Process.Start("Explorer", this.txtSitePath.Text ?? "");
      }
      this.WriteLog(sender);
    }

    private void ToolStripMenuItem2_Click(object sender, EventArgs e)
    {
      if (Directory.Exists(this.txtSitePath.Text))
      {
        string path = this.txtSitePath.Text + "\\bin\\License.xml";
        if (System.IO.File.Exists(path))
          Process.Start("Explorer", "/select," + path);
        else
          Process.Start("Explorer", this.txtSitePath.Text ?? "");
      }
      this.WriteLog(sender);
    }

    private void toolStripTextBox3_Click(object sender, EventArgs e)
    {
      ToolStripTextBox toolStripTextBox = (ToolStripTextBox) sender;
      if (toolStripTextBox.Text == "根据URL地址打开")
        toolStripTextBox.Text = "";
      this.WriteLog(sender);
    }

    private void toolStripTextBox3_TextChanged(object sender, EventArgs e)
    {
    }

    private string GetPathFromURL(string strURL)
    {
      return this.txtSitePath.Text + this.ConvertURL2Path(strURL.ToLower());
    }

    private string ConvertURL2Path(string strURL)
    {
      if (strURL.StartsWith("http://"))
      {
        strURL = strURL.Replace("http://", "").Split('?')[0];
        strURL = strURL.Substring(strURL.IndexOf("/"));
      }
      else if (strURL.StartsWith("/"))
        strURL = strURL.Split('?')[0];
      else
        strURL = "/" + strURL.Split('?')[0];
      return strURL.Replace("/", "\\");
    }

    private void toolStripTextBox3_KeyPress(object sender, KeyPressEventArgs e)
    {
      if ((int) e.KeyChar == (int) Convert.ToChar((object) Keys.Return))
      {
        string pathFromUrl = this.GetPathFromURL(((ToolStripItem) sender).Text.ToLower());
        if (System.IO.File.Exists(pathFromUrl))
        {
          Process.Start("Explorer", "/select," + pathFromUrl);
        }
        else
        {
          int num = (int) MessageBox.Show(pathFromUrl + " 文件不存在！");
        }
      }
      this.WriteLog(sender);
    }

    private void cbVersion_SelectedIndexChanged(object sender, EventArgs e)
    {
      this.ShowVersion();
    }

    private void radioButton2_CheckedChanged(object sender, EventArgs e)
    {
      this.ShowVersion();
    }

    private void radioButton3_CheckedChanged(object sender, EventArgs e)
    {
      this.ShowVersion();
    }

    private void radioButton1_CheckedChanged(object sender, EventArgs e)
    {
      this.ShowVersion();
    }

    private void 复制信息ToolStripMenuItem_Click(object sender, EventArgs e)
    {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.AppendFormat("源代码地址：{0}\r\n", (object) this.txtSourceAdress.Text);
      stringBuilder.AppendFormat("数据库地址：{0}\r\n", (object) this.txtServerName2.Text);
      stringBuilder.AppendFormat("数据库名称：{0}\r\n", (object) this.txtDBName.Text);
      stringBuilder.AppendFormat("用户名：{0}\r\n", (object) this.cboUserName.Text);
      stringBuilder.AppendFormat("密码：{0}\r\n", (object) this.cboPwd.Text);
      stringBuilder.AppendFormat("Map版本：{0}\r\n", (object) this.txtMapVersion.Text);
      stringBuilder.AppendFormat("工作流版本：{0}\r\n", (object) this.txtWorkFlowVsersion.Text);
      Clipboard.SetDataObject((object) stringBuilder.ToString());
      this.WriteLog(sender);
    }

    private void 版本号查询ToolStripMenuItem_Click(object sender, EventArgs e)
    {
      this.OpenFrmVersion(this.txtVersion.Text);
      this.WriteLog(sender);
    }

    private void OpenFrmVersion(string strVersion)
    {
      int num = (int) new frmVersion()
      {
        ParamKey = strVersion
      }.ShowDialog((IWin32Window) this);
    }

    private void txtMapVersion_DoubleClick(object sender, EventArgs e)
    {
      this.OpenFrmVersion(((Control) sender).Text);
      this.WriteLog(sender);
    }

    private void txtWorkFlowVsersion_DoubleClick(object sender, EventArgs e)
    {
      this.OpenFrmVersion(((Control) sender).Text);
      this.WriteLog(sender);
    }

    private void txtVersion_DoubleClick(object sender, EventArgs e)
    {
      this.OpenFrmVersion(((Control) sender).Text);
      this.WriteLog(sender);
    }

    private void btn_CreateSite_Click(object sender, EventArgs e)
    {
      new frmCreateSite().Show();
    }

    private void 用户设置ToolStripMenuItem_Click(object sender, EventArgs e)
    {
      int num = (int) new frmUserConfig().ShowDialog();
    }

    private void dbName查询ToolStripMenuItem_Click(object sender, EventArgs e)
    {
      int num = (int) new frmDbNames()
      {
        KeyWords = this.txtDBName.Text
      }.ShowDialog();
    }

    private void tmTsBtnSelectFiles_Click(object sender, EventArgs e)
    {
      OpenFileDialog openFileDialog = new OpenFileDialog();
      openFileDialog.InitialDirectory = "D:\\";
      openFileDialog.Filter = "sql files (*.sql)|*.sql|All files (*.*)|*.*";
      openFileDialog.FilterIndex = 0;
      openFileDialog.Multiselect = true;
      if (openFileDialog.ShowDialog() != DialogResult.OK)
        return;
      foreach (string fileName in openFileDialog.FileNames)
      {
        if (!this.tmListFiles.Items.ContainsKey(fileName))
          this.tmListFiles.Items.Add(fileName, fileName, 0);
      }
    }

    private void tmTsBtnDeleteFile_Click(object sender, EventArgs e)
    {
      if (this.tmListFiles.SelectedItems.Count <= 0)
        return;
      this.tmListFiles.Items.RemoveByKey(this.tmListFiles.SelectedItems[0].Text);
    }

    private void tmTsMoveUp_Click(object sender, EventArgs e)
    {
      try
      {
        int num = this.tmListFiles.SelectedItems[0].Index - 1;
        for (int index1 = 0; index1 < this.tmListFiles.SelectedItems.Count; ++index1)
        {
          ListViewItem listViewItem = this.tmListFiles.SelectedItems[index1];
          int index2 = this.tmListFiles.SelectedItems[index1].Index - 1;
          if (index2 < 0)
            break;
          this.tmListFiles.Items.Remove(this.tmListFiles.SelectedItems[index1]);
          this.tmListFiles.Items.Insert(index2, listViewItem);
          listViewItem.Selected = true;
        }
      }
      catch (Exception ex)
      {
      }
    }

    private void tmTsMoveDown_Click(object sender, EventArgs e)
    {
      for (int index1 = this.tmListFiles.SelectedItems.Count - 1; index1 > -1; --index1)
      {
        ListViewItem listViewItem = this.tmListFiles.SelectedItems[index1];
        int index2 = this.tmListFiles.SelectedItems[index1].Index + 1;
        if (index2 > this.tmListFiles.Items.Count - 1)
          break;
        this.tmListFiles.Items.Remove(this.tmListFiles.SelectedItems[index1]);
        this.tmListFiles.Items.Insert(index2, listViewItem);
        listViewItem.Selected = true;
      }
    }

    private void tmTsClearAll_Click(object sender, EventArgs e)
    {
      this.tmListFiles.Items.Clear();
    }

    private void tmBtnSavePathSelect_Click(object sender, EventArgs e)
    {
      SaveFileDialog saveFileDialog = new SaveFileDialog();
      saveFileDialog.InitialDirectory = "D:\\";
      saveFileDialog.Filter = "sql files (*.sql)|*.sql|All files (*.*)|*.*";
      saveFileDialog.FilterIndex = 0;
      if (saveFileDialog.ShowDialog() != DialogResult.OK)
        return;
      this.tmOutputPath.Text = saveFileDialog.FileName;
    }

    private void tmBtnExec_Click(object sender, EventArgs e)
    {
      if (this.tmListFiles.Items.Count <= 0)
      {
        int num1 = (int) MessageBox.Show("没有待合并的文件！", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
      }
      else if (string.IsNullOrEmpty(this.tmOutputPath.Text.Trim()))
      {
        int num2 = (int) MessageBox.Show("请选择保存路径！", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
      }
      else
      {
        try
        {
          System.IO.File.Delete(this.tmOutputPath.Text.Trim());
          foreach (ListViewItem listViewItem in this.tmListFiles.Items)
          {
            string contents = System.IO.File.ReadAllText(listViewItem.Text, Encoding.Default);
            System.IO.File.AppendAllText(this.tmOutputPath.Text.Trim(), string.Empty + "-----------------------------------------------------------------------------\r\n" + "-- 来自 " + listViewItem.Text + "\r\n" + "-----------------------------------------------------------------------------\r\n", Encoding.Default);
            System.IO.File.AppendAllText(this.tmOutputPath.Text.Trim(), contents, Encoding.Default);
            System.IO.File.AppendAllText(this.tmOutputPath.Text.Trim(), "\r\n\r\n", Encoding.Default);
          }
          int num3 = (int) MessageBox.Show("文件合并成功！", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
        }
        catch (Exception ex)
        {
          int num3 = (int) MessageBox.Show("输入信息有严重错误，无法进行合并！", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }
      }
    }

    private void notifyIcon1_DoubleClick(object sender, EventArgs e)
    {
      this.Show();
      this.notifyIcon1.Visible = false;
    }

    private void tmNTsMainUI_Click(object sender, EventArgs e)
    {
      this.Show();
      this.notifyIcon1.Visible = false;
    }

    private void tmNTsExit_Click(object sender, EventArgs e)
    {
      Application.Exit();
    }

    private void 我的工具_FormClosing(object sender, FormClosingEventArgs e)
    {
    }

    private void button3_Click(object sender, EventArgs e)
    {
      this.WriteLog(sender);
      string text = this.cboReg.Text;
      Sql sql = new Sql("SELECT Distinct ServerName,DbName,UserId,Password,RegName FROM dp_WebSite WHERE ", new object[0]);
      if (text != "")
        sql.Append("RegName = '" + text.Replace("'", "''") + "'", new object[0]);
      else
        sql.Append("1=2", new object[0]);
      sql.OrderBy((object) "ServerName");
      IEnumerable<dp_WebSite> dpWebSites = this.db.Query<dp_WebSite>(sql);
      DataTable dataTable = new DataTable("Employees");
      dataTable.Columns.Add("ServerName", typeof (string));
      dataTable.Columns.Add("DbName", typeof (string));
      dataTable.Columns.Add("UserId", typeof (string));
      dataTable.Columns.Add("Password", typeof (string));
      foreach (dp_WebSite dpWebSite in dpWebSites)
        dataTable.Rows.Add((object[]) new string[4]
        {
          dpWebSite.ServerName,
          dpWebSite.DbName,
          dpWebSite.UserId,
          dpWebSite.Password
        });
      if (dataTable.Rows.Count == 0)
        return;
      this.multiColumnComboBox1 = new MultiColumnComboBox();
      this.multiColumnComboBox1.DrawMode = DrawMode.OwnerDrawVariable;
      this.multiColumnComboBox1.DropDownHeight = 120;
      this.multiColumnComboBox1.FormattingEnabled = true;
      this.multiColumnComboBox1.IntegralHeight = false;
      this.multiColumnComboBox1.Location = ((Control) sender).Location;
      this.multiColumnComboBox1.Name = "multiColumnComboBox1";
      this.multiColumnComboBox1.Size = new Size(1, 1);
      this.multiColumnComboBox1.TabIndex = 26;
      this.groupBox3.Controls.Add((Control) this.multiColumnComboBox1);
      this.multiColumnComboBox1.DataSource = (object) dataTable;
      this.multiColumnComboBox1.DisplayMember = "DbName";
      this.multiColumnComboBox1.ValueMember = "ServerName";
      this.multiColumnComboBox1.DroppedDown = true;
      this.multiColumnComboBox1.SelectedIndexChanged += new EventHandler(this.multiColumnComboBox1_SelectedIndexChanged);
    }

    private void multiColumnComboBox1_SelectedIndexChanged(object sender, EventArgs e)
    {
      DataRowView dataRowView = (DataRowView) this.multiColumnComboBox1.SelectedItem;
      this.txtServerName2.Text = dataRowView["ServerName"].ToString();
      this.txtDBName.Text = dataRowView["DbName"].ToString();
      this.cboUserName.Text = dataRowView["UserId"].ToString();
      this.cboPwd.Text = dataRowView["Password"].ToString();
    }

    private void BindHisDataBaseComb(string regName)
    {
    }

    private void 清空TempfilesToolStripMenuItem_Click(object sender, EventArgs e)
    {
      if (Directory.Exists(this.txtSitePath.Text + "\\TempFiles"))
      {
        foreach (string file in Directory.GetFiles(this.txtSitePath.Text + "\\TempFiles", "*", SearchOption.AllDirectories))
        {
          System.IO.File.SetAttributes(file, FileAttributes.Normal);
          System.IO.File.Delete(file);
        }
      }
      int num = (int) MessageBox.Show("清空Tempfiles完成");
      this.WriteLog(sender);
    }

    private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
      new Process()
      {
        StartInfo = {
          FileName = "IEXPLORE.EXE",
          Arguments = this.linkLabel2.Text
        }
      }.Start();
      this.SaveWebSite(false, false);
      this.WriteLog(sender);
    }

    private void listView1_KeyPress(object sender, KeyPressEventArgs e)
    {
    }

    private void listView1_KeyDown(object sender, KeyEventArgs e)
    {
      if (e.KeyCode != Keys.Delete)
        return;
      foreach (ListViewItem selectedItem in this.listView1.SelectedItems)
      {
        dp_WebSite dpWebSite = (dp_WebSite) this.listView1.SelectedItems[0].Tag;
        if (MessageBox.Show("是否删除“" + dpWebSite.SiteName + "”？", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
        {
          if (dpWebSite.Delete() == 1)
          {
            this.listView1.Items.Remove(selectedItem);
          }
          else
          {
            int num = (int) MessageBox.Show("删除失败，请重试");
          }
        }
      }
    }

    private void 设置ToolStripMenuItem_Click(object sender, EventArgs e)
    {
      int num = (int) new frmAppConfig().ShowDialog();
    }

    private void 设置ToolStripMenuItem1_Click(object sender, EventArgs e)
    {
      int num = (int) new frmAppConfig().ShowDialog();
    }

    protected override void Dispose(bool disposing)
    {
      if (disposing && this.components != null)
        this.components.Dispose();
      base.Dispose(disposing);
    }

    private void InitializeComponent()
    {
      this.components = (IContainer) new Container();
      ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (我的工具));
      this.folderBrowserDialog1 = new FolderBrowserDialog();
      this.tabPage2 = new TabPage();
      this.richTextBox1 = new RichTextBox();
      this.Button4 = new Button();
      this.panel1 = new Panel();
      this.checkBox1 = new CheckBox();
      this.button1 = new Button();
      this.Button5 = new Button();
      this.tabPage1 = new TabPage();
      this.panel3 = new Panel();
      this.listView1 = new ListView();
      this.columnHeader1 = new ColumnHeader();
      this.columnHeader2 = new ColumnHeader();
      this.columnHeader3 = new ColumnHeader();
      this.columnHeader4 = new ColumnHeader();
      this.columnHeader5 = new ColumnHeader();
      this.columnHeader6 = new ColumnHeader();
      this.columnHeader7 = new ColumnHeader();
      this.columnHeader8 = new ColumnHeader();
      this.columnHeader9 = new ColumnHeader();
      this.panel2 = new Panel();
      this.groupBox4 = new GroupBox();
      this.button2 = new Button();
      this.label1 = new Label();
      this.label2 = new Label();
      this.DBName = new TextBox();
      this.txbSiteName = new TextBox();
      this.tabPage4 = new TabPage();
      this.linkLabel2 = new LinkLabel();
      this.panelForHide = new Panel();
      this.txtPort = new TextBox();
      this.txtIISKeyWord = new TextBox();
      this.listSite = new ListBox();
      this.linkLabel1 = new LinkLabel();
      this.groupBox3 = new GroupBox();
      this.contextMenuStrip1 = new ContextMenuStrip(this.components);
      this.ToolStripMenuItem1 = new ToolStripMenuItem();
      this.ToolStripMenuItem2 = new ToolStripMenuItem();
      this.toolStripTextBox3 = new ToolStripTextBox();
      this.复制信息ToolStripMenuItem = new ToolStripMenuItem();
      this.版本号查询ToolStripMenuItem = new ToolStripMenuItem();
      this.dbName查询ToolStripMenuItem = new ToolStripMenuItem();
      this.清空TempfilesToolStripMenuItem = new ToolStripMenuItem();
      this.button3 = new Button();
      this.label9 = new Label();
      this.txtSitePath = new TextBox();
      this.label10 = new Label();
      this.label16 = new Label();
      this.txtSiteName = new TextBox();
      this.label11 = new Label();
      this.label12 = new Label();
      this.cboReg = new ComboBox();
      this.txtAss = new ComboBox();
      this.label17 = new Label();
      this.txtSourceAdress = new TextBox();
      this.txtDBName = new TextBox();
      this.label15 = new Label();
      this.txtServerName2 = new ComboBox();
      this.label14 = new Label();
      this.cboUserName = new ComboBox();
      this.label13 = new Label();
      this.cboPwd = new ComboBox();
      this.groupBox2 = new GroupBox();
      this.cbVersion = new ComboBox();
      this.radioButton3 = new RadioButton();
      this.radioButton2 = new RadioButton();
      this.radioButton1 = new RadioButton();
      this.label21 = new Label();
      this.txtVersion = new TextBox();
      this.txtWorkFlowVsersion = new TextBox();
      this.label20 = new Label();
      this.txtMapVersion = new TextBox();
      this.label19 = new Label();
      this.groupBox1 = new GroupBox();
      this.button19 = new Button();
      this.button24 = new Button();
      this.button17 = new Button();
      this.button16 = new Button();
      this.button18 = new Button();
      this.button22 = new Button();
      this.button15 = new Button();
      this.pictureBox1 = new PictureBox();
      this.comboBox1 = new ComboBox();
      this.label18 = new Label();
      this.lblIISVer = new LinkLabel();
      this.button11 = new Button();
      this.button14 = new Button();
      this.button13 = new Button();
      this.button12 = new Button();
      this.button20 = new Button();
      this.button10 = new Button();
      this.button23 = new Button();
      this.button9 = new Button();
      this.btn_CreateSite = new Button();
      this.button8 = new Button();
      this.tabControl1 = new TabControl();
      this.tpageTextMager = new TabPage();
      this.splitContainer1 = new SplitContainer();
      this.tmListFiles = new ListView();
      this.toolStrip1 = new ToolStrip();
      this.tmTsBtnSelectFiles = new ToolStripButton();
      this.tmTsMoveUp = new ToolStripButton();
      this.tmTsMoveDown = new ToolStripButton();
      this.tmTsBtnDeleteFile = new ToolStripButton();
      this.tmTsClearAll = new ToolStripButton();
      this.tmBtnExec = new Button();
      this.tmBtnSavePathSelect = new Button();
      this.tmOutputPath = new TextBox();
      this.label6 = new Label();
      this.contextMenuStrip2 = new ContextMenuStrip(this.components);
      this.用户设置ToolStripMenuItem = new ToolStripMenuItem();
      this.toolTip1 = new ToolTip(this.components);
      this.notifyIcon1 = new NotifyIcon(this.components);
      this.notifyContextMenu = new ContextMenuStrip(this.components);
      this.tmNTsMainUI = new ToolStripMenuItem();
      this.tmNTsExit = new ToolStripMenuItem();
      this.backgroundWorker1 = new BackgroundWorker();
      this.设置ToolStripMenuItem = new ToolStripMenuItem();
      this.设置ToolStripMenuItem1 = new ToolStripMenuItem();
      this.tabPage2.SuspendLayout();
      this.panel1.SuspendLayout();
      this.tabPage1.SuspendLayout();
      this.panel3.SuspendLayout();
      this.panel2.SuspendLayout();
      this.groupBox4.SuspendLayout();
      this.tabPage4.SuspendLayout();
      this.panelForHide.SuspendLayout();
      this.groupBox3.SuspendLayout();
      this.contextMenuStrip1.SuspendLayout();
      this.groupBox2.SuspendLayout();
      this.groupBox1.SuspendLayout();
      ((ISupportInitialize) this.pictureBox1).BeginInit();
      this.tabControl1.SuspendLayout();
      this.tpageTextMager.SuspendLayout();
      this.splitContainer1.Panel1.SuspendLayout();
      this.splitContainer1.Panel2.SuspendLayout();
      this.splitContainer1.SuspendLayout();
      this.toolStrip1.SuspendLayout();
      this.contextMenuStrip2.SuspendLayout();
      this.notifyContextMenu.SuspendLayout();
      this.SuspendLayout();
      this.tabPage2.BackColor = SystemColors.Control;
      this.tabPage2.Controls.Add((Control) this.richTextBox1);
      this.tabPage2.Controls.Add((Control) this.Button4);
      this.tabPage2.Controls.Add((Control) this.panel1);
      this.tabPage2.Location = new Point(4, 22);
      this.tabPage2.Name = "tabPage2";
      this.tabPage2.Padding = new Padding(3);
      this.tabPage2.Size = new Size(883, 419);
      this.tabPage2.TabIndex = 1;
      this.tabPage2.Text = "SQL2VB";
      this.richTextBox1.Dock = DockStyle.Fill;
      this.richTextBox1.Location = new Point(3, 36);
      this.richTextBox1.Name = "richTextBox1";
      this.richTextBox1.Size = new Size(877, 380);
      this.richTextBox1.TabIndex = 13;
      this.richTextBox1.Text = "";
      this.richTextBox1.WordWrap = false;
      this.Button4.Location = new Point(7, 7);
      this.Button4.Name = "Button4";
      this.Button4.Size = new Size(75, 23);
      this.Button4.TabIndex = 9;
      this.Button4.Text = "SQL2VB";
      this.Button4.UseVisualStyleBackColor = true;
      this.Button4.Click += new EventHandler(this.Button4_Click_1);
      this.panel1.Controls.Add((Control) this.checkBox1);
      this.panel1.Controls.Add((Control) this.button1);
      this.panel1.Controls.Add((Control) this.Button5);
      this.panel1.Dock = DockStyle.Top;
      this.panel1.Location = new Point(3, 3);
      this.panel1.Name = "panel1";
      this.panel1.Size = new Size(877, 33);
      this.panel1.TabIndex = 12;
      this.checkBox1.AutoSize = true;
      this.checkBox1.Location = new Point(784, 8);
      this.checkBox1.Name = "checkBox1";
      this.checkBox1.Size = new Size(72, 16);
      this.checkBox1.TabIndex = 11;
      this.checkBox1.Text = "自动换行";
      this.checkBox1.UseVisualStyleBackColor = true;
      this.checkBox1.CheckedChanged += new EventHandler(this.checkBox1_CheckedChanged);
      this.button1.Location = new Point(197, 4);
      this.button1.Name = "button1";
      this.button1.Size = new Size(75, 23);
      this.button1.TabIndex = 10;
      this.button1.Text = "TextForIn";
      this.button1.UseVisualStyleBackColor = true;
      this.button1.Click += new EventHandler(this.button1_Click_1);
      this.Button5.Location = new Point(101, 4);
      this.Button5.Name = "Button5";
      this.Button5.Size = new Size(75, 23);
      this.Button5.TabIndex = 10;
      this.Button5.Text = "VB2SQL";
      this.Button5.UseVisualStyleBackColor = true;
      this.Button5.Click += new EventHandler(this.Button5_Click_1);
      this.tabPage1.BackColor = SystemColors.Control;
      this.tabPage1.Controls.Add((Control) this.panel3);
      this.tabPage1.Controls.Add((Control) this.panel2);
      this.tabPage1.Location = new Point(4, 22);
      this.tabPage1.Name = "tabPage1";
      this.tabPage1.Padding = new Padding(3);
      this.tabPage1.Size = new Size(883, 419);
      this.tabPage1.TabIndex = 0;
      this.tabPage1.Text = "站点库";
      this.panel3.Controls.Add((Control) this.listView1);
      this.panel3.Dock = DockStyle.Fill;
      this.panel3.Location = new Point(3, 55);
      this.panel3.Name = "panel3";
      this.panel3.Size = new Size(877, 361);
      this.panel3.TabIndex = 16;
      this.listView1.AllowColumnReorder = true;
      this.listView1.Columns.AddRange(new ColumnHeader[9]
      {
        this.columnHeader1,
        this.columnHeader2,
        this.columnHeader3,
        this.columnHeader4,
        this.columnHeader5,
        this.columnHeader6,
        this.columnHeader7,
        this.columnHeader8,
        this.columnHeader9
      });
      this.listView1.Dock = DockStyle.Fill;
      this.listView1.FullRowSelect = true;
      this.listView1.GridLines = true;
      this.listView1.Location = new Point(0, 0);
      this.listView1.MultiSelect = false;
      this.listView1.Name = "listView1";
      this.listView1.Size = new Size(877, 361);
      this.listView1.Sorting = SortOrder.Ascending;
      this.listView1.TabIndex = 0;
      this.listView1.UseCompatibleStateImageBehavior = false;
      this.listView1.View = View.Details;
      this.listView1.ColumnClick += new ColumnClickEventHandler(this.listView1_ColumnClick);
      this.listView1.DoubleClick += new EventHandler(this.listView1_DoubleClick);
      this.listView1.KeyDown += new KeyEventHandler(this.listView1_KeyDown);
      this.listView1.KeyPress += new KeyPressEventHandler(this.listView1_KeyPress);
      this.columnHeader1.Text = "序号";
      this.columnHeader1.Width = 38;
      this.columnHeader2.Text = "站点名称";
      this.columnHeader2.Width = 120;
      this.columnHeader3.Text = "站点地址";
      this.columnHeader3.Width = 150;
      this.columnHeader4.Text = "服务器名称";
      this.columnHeader4.Width = 140;
      this.columnHeader5.Text = "数据库名称";
      this.columnHeader5.Width = 140;
      this.columnHeader6.Text = "用户名";
      this.columnHeader6.Width = 80;
      this.columnHeader7.Text = "密码";
      this.columnHeader7.Width = 50;
      this.columnHeader8.Text = "修改时间";
      this.columnHeader8.Width = 100;
      this.columnHeader9.Text = "备注";
      this.columnHeader9.Width = 130;
      this.panel2.Controls.Add((Control) this.groupBox4);
      this.panel2.Dock = DockStyle.Top;
      this.panel2.Location = new Point(3, 3);
      this.panel2.Name = "panel2";
      this.panel2.Size = new Size(877, 52);
      this.panel2.TabIndex = 17;
      this.groupBox4.Controls.Add((Control) this.button2);
      this.groupBox4.Controls.Add((Control) this.label1);
      this.groupBox4.Controls.Add((Control) this.label2);
      this.groupBox4.Controls.Add((Control) this.DBName);
      this.groupBox4.Controls.Add((Control) this.txbSiteName);
      this.groupBox4.Dock = DockStyle.Fill;
      this.groupBox4.Location = new Point(0, 0);
      this.groupBox4.Name = "groupBox4";
      this.groupBox4.Size = new Size(877, 52);
      this.groupBox4.TabIndex = 14;
      this.groupBox4.TabStop = false;
      this.groupBox4.Text = "查询";
      this.button2.Location = new Point(786, 13);
      this.button2.Name = "button2";
      this.button2.Size = new Size(73, 28);
      this.button2.TabIndex = 13;
      this.button2.Text = "查询";
      this.button2.UseVisualStyleBackColor = true;
      this.button2.Click += new EventHandler(this.button2_Click);
      this.label1.AutoSize = true;
      this.label1.Location = new Point(18, 22);
      this.label1.Name = "label1";
      this.label1.Size = new Size(65, 12);
      this.label1.TabIndex = 0;
      this.label1.Text = "站点名称：";
      this.label2.AutoSize = true;
      this.label2.Location = new Point(391, 22);
      this.label2.Name = "label2";
      this.label2.Size = new Size(77, 12);
      this.label2.TabIndex = 2;
      this.label2.Text = "数据库名称：";
      this.DBName.Location = new Point(468, 18);
      this.DBName.Name = "DBName";
      this.DBName.Size = new Size(229, 21);
      this.DBName.TabIndex = 5;
      this.txbSiteName.Location = new Point(95, 18);
      this.txbSiteName.Name = "txbSiteName";
      this.txbSiteName.Size = new Size(229, 21);
      this.txbSiteName.TabIndex = 3;
      this.tabPage4.BackColor = SystemColors.Control;
      this.tabPage4.Controls.Add((Control) this.linkLabel2);
      this.tabPage4.Controls.Add((Control) this.panelForHide);
      this.tabPage4.Controls.Add((Control) this.txtIISKeyWord);
      this.tabPage4.Controls.Add((Control) this.listSite);
      this.tabPage4.Controls.Add((Control) this.linkLabel1);
      this.tabPage4.Controls.Add((Control) this.groupBox3);
      this.tabPage4.Controls.Add((Control) this.groupBox2);
      this.tabPage4.Controls.Add((Control) this.groupBox1);
      this.tabPage4.Controls.Add((Control) this.pictureBox1);
      this.tabPage4.Controls.Add((Control) this.comboBox1);
      this.tabPage4.Controls.Add((Control) this.label18);
      this.tabPage4.Controls.Add((Control) this.lblIISVer);
      this.tabPage4.Controls.Add((Control) this.button11);
      this.tabPage4.Controls.Add((Control) this.button14);
      this.tabPage4.Controls.Add((Control) this.button13);
      this.tabPage4.Controls.Add((Control) this.button12);
      this.tabPage4.Controls.Add((Control) this.button20);
      this.tabPage4.Controls.Add((Control) this.button10);
      this.tabPage4.Controls.Add((Control) this.button23);
      this.tabPage4.Controls.Add((Control) this.button9);
      this.tabPage4.Controls.Add((Control) this.btn_CreateSite);
      this.tabPage4.Controls.Add((Control) this.button8);
      this.tabPage4.Location = new Point(4, 22);
      this.tabPage4.Name = "tabPage4";
      this.tabPage4.Padding = new Padding(3);
      this.tabPage4.Size = new Size(883, 419);
      this.tabPage4.TabIndex = 3;
      this.tabPage4.Text = "站点设置";
      this.linkLabel2.AutoSize = true;
      this.linkLabel2.Location = new Point(656, 234);
      this.linkLabel2.Name = "linkLabel2";
      this.linkLabel2.Size = new Size(59, 12);
      this.linkLabel2.TabIndex = 38;
      this.linkLabel2.TabStop = true;
      this.linkLabel2.Text = "admin登录";
      this.linkLabel2.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
      this.panelForHide.Controls.Add((Control) this.txtPort);
      this.panelForHide.Location = new Point(71, 117);
      this.panelForHide.Name = "panelForHide";
      this.panelForHide.Size = new Size(75, 33);
      this.panelForHide.TabIndex = 25;
      this.panelForHide.Visible = false;
      this.txtPort.Location = new Point(3, 4);
      this.txtPort.Name = "txtPort";
      this.txtPort.Size = new Size(69, 21);
      this.txtPort.TabIndex = 4;
      this.txtPort.TextChanged += new EventHandler(this.txtPort_TextChanged);
      this.txtIISKeyWord.Location = new Point(20, 9);
      this.txtIISKeyWord.Name = "txtIISKeyWord";
      this.txtIISKeyWord.Size = new Size(126, 21);
      this.txtIISKeyWord.TabIndex = 0;
      this.txtIISKeyWord.TextChanged += new EventHandler(this.txtIISKeyWord_TextChanged);
      this.txtIISKeyWord.KeyDown += new KeyEventHandler(this.txtIISKeyWord_KeyDown);
      this.listSite.Font = new Font("微软雅黑", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte) 134);
      this.listSite.FormattingEnabled = true;
      this.listSite.ItemHeight = 19;
      this.listSite.Location = new Point(19, 38);
      this.listSite.Name = "listSite";
      this.listSite.Size = new Size(212, 365);
      this.listSite.TabIndex = 1;
      this.listSite.SelectedIndexChanged += new EventHandler(this.listSite_SelectedIndexChanged);
      this.linkLabel1.AutoSize = true;
      this.linkLabel1.Location = new Point(656, 214);
      this.linkLabel1.Name = "linkLabel1";
      this.linkLabel1.Size = new Size(125, 12);
      this.linkLabel1.TabIndex = 3;
      this.linkLabel1.TabStop = true;
      this.linkLabel1.Text = "Http://www.baidu.com";
      this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
      this.groupBox3.ContextMenuStrip = this.contextMenuStrip1;
      this.groupBox3.Controls.Add((Control) this.button3);
      this.groupBox3.Controls.Add((Control) this.label9);
      this.groupBox3.Controls.Add((Control) this.txtSitePath);
      this.groupBox3.Controls.Add((Control) this.label10);
      this.groupBox3.Controls.Add((Control) this.label16);
      this.groupBox3.Controls.Add((Control) this.txtSiteName);
      this.groupBox3.Controls.Add((Control) this.label11);
      this.groupBox3.Controls.Add((Control) this.label12);
      this.groupBox3.Controls.Add((Control) this.cboReg);
      this.groupBox3.Controls.Add((Control) this.txtAss);
      this.groupBox3.Controls.Add((Control) this.label17);
      this.groupBox3.Controls.Add((Control) this.txtSourceAdress);
      this.groupBox3.Controls.Add((Control) this.txtDBName);
      this.groupBox3.Controls.Add((Control) this.label15);
      this.groupBox3.Controls.Add((Control) this.txtServerName2);
      this.groupBox3.Controls.Add((Control) this.label14);
      this.groupBox3.Controls.Add((Control) this.cboUserName);
      this.groupBox3.Controls.Add((Control) this.label13);
      this.groupBox3.Controls.Add((Control) this.cboPwd);
      this.groupBox3.Location = new Point(240, 39);
      this.groupBox3.Name = "groupBox3";
      this.groupBox3.Size = new Size(635, 163);
      this.groupBox3.TabIndex = 36;
      this.groupBox3.TabStop = false;
      this.groupBox3.Text = "配置信息";
      this.contextMenuStrip1.Items.AddRange(new ToolStripItem[8]
      {
        (ToolStripItem) this.ToolStripMenuItem1,
        (ToolStripItem) this.ToolStripMenuItem2,
        (ToolStripItem) this.toolStripTextBox3,
        (ToolStripItem) this.复制信息ToolStripMenuItem,
        (ToolStripItem) this.版本号查询ToolStripMenuItem,
        (ToolStripItem) this.dbName查询ToolStripMenuItem,
        (ToolStripItem) this.清空TempfilesToolStripMenuItem,
        (ToolStripItem) this.设置ToolStripMenuItem1
      });
      this.contextMenuStrip1.Name = "contextMenuStrip1";
      this.contextMenuStrip1.Size = new Size(161, 205);
      this.ToolStripMenuItem1.Name = "ToolStripMenuItem1";
      this.ToolStripMenuItem1.Size = new Size(160, 22);
      this.ToolStripMenuItem1.Text = "打开Map";
      this.ToolStripMenuItem1.Click += new EventHandler(this.ToolStripMenuItem1_Click);
      this.ToolStripMenuItem2.Name = "ToolStripMenuItem2";
      this.ToolStripMenuItem2.Size = new Size(160, 22);
      this.ToolStripMenuItem2.Text = "打开Bin";
      this.ToolStripMenuItem2.Click += new EventHandler(this.ToolStripMenuItem2_Click);
      this.toolStripTextBox3.AcceptsReturn = true;
      this.toolStripTextBox3.AutoToolTip = true;
      this.toolStripTextBox3.Name = "toolStripTextBox3";
      this.toolStripTextBox3.Size = new Size(100, 23);
      this.toolStripTextBox3.Text = "根据URL地址打开";
      this.toolStripTextBox3.ToolTipText = "粘贴URL地址后按回车";
      this.toolStripTextBox3.KeyPress += new KeyPressEventHandler(this.toolStripTextBox3_KeyPress);
      this.toolStripTextBox3.Click += new EventHandler(this.toolStripTextBox3_Click);
      this.toolStripTextBox3.TextChanged += new EventHandler(this.toolStripTextBox3_TextChanged);
      this.复制信息ToolStripMenuItem.Name = "复制信息ToolStripMenuItem";
      this.复制信息ToolStripMenuItem.Size = new Size(160, 22);
      this.复制信息ToolStripMenuItem.Text = "复制到剪切板";
      this.复制信息ToolStripMenuItem.Click += new EventHandler(this.复制信息ToolStripMenuItem_Click);
      this.版本号查询ToolStripMenuItem.Name = "版本号查询ToolStripMenuItem";
      this.版本号查询ToolStripMenuItem.Size = new Size(160, 22);
      this.版本号查询ToolStripMenuItem.Text = "ERP版本号查询";
      this.版本号查询ToolStripMenuItem.Click += new EventHandler(this.版本号查询ToolStripMenuItem_Click);
      this.dbName查询ToolStripMenuItem.Name = "dbName查询ToolStripMenuItem";
      this.dbName查询ToolStripMenuItem.Size = new Size(160, 22);
      this.dbName查询ToolStripMenuItem.Text = "DbName查询";
      this.dbName查询ToolStripMenuItem.Click += new EventHandler(this.dbName查询ToolStripMenuItem_Click);
      this.清空TempfilesToolStripMenuItem.Name = "清空TempfilesToolStripMenuItem";
      this.清空TempfilesToolStripMenuItem.Size = new Size(160, 22);
      this.清空TempfilesToolStripMenuItem.Text = "清空Tempfiles";
      this.清空TempfilesToolStripMenuItem.Click += new EventHandler(this.清空TempfilesToolStripMenuItem_Click);
      this.button3.Image = (Image) componentResourceManager.GetObject("button3.Image");
      this.button3.Location = new Point(298, 73);
      this.button3.Name = "button3";
      this.button3.Size = new Size(23, 23);
      this.button3.TabIndex = 25;
      this.button3.UseVisualStyleBackColor = false;
      this.button3.Click += new EventHandler(this.button3_Click);
      this.label9.AutoSize = true;
      this.label9.Location = new Point(23, 51);
      this.label9.Name = "label9";
      this.label9.Size = new Size(65, 12);
      this.label9.TabIndex = 3;
      this.label9.Text = "站点目录：";
      this.txtSitePath.Cursor = Cursors.Hand;
      this.txtSitePath.ForeColor = System.Drawing.Color.Blue;
      this.txtSitePath.Location = new Point(92, 47);
      this.txtSitePath.Name = "txtSitePath";
      this.txtSitePath.Size = new Size(535, 21);
      this.txtSitePath.TabIndex = 4;
      this.toolTip1.SetToolTip((Control) this.txtSitePath, "双击可以打开站点目录");
      this.txtSitePath.DoubleClick += new EventHandler(this.txtSitePath_DoubleClick);
      this.label10.AutoSize = true;
      this.label10.Location = new Point(347, 23);
      this.label10.Name = "label10";
      this.label10.Size = new Size(65, 12);
      this.label10.TabIndex = 3;
      this.label10.Text = "源码地址：";
      this.label16.AutoSize = true;
      this.label16.Location = new Point(23, 24);
      this.label16.Name = "label16";
      this.label16.Size = new Size(65, 12);
      this.label16.TabIndex = 3;
      this.label16.Text = "站点名称：";
      this.txtSiteName.Location = new Point(92, 20);
      this.txtSiteName.Name = "txtSiteName";
      this.txtSiteName.Size = new Size(208, 21);
      this.txtSiteName.TabIndex = 4;
      this.label11.AutoSize = true;
      this.label11.Location = new Point(348, 78);
      this.label11.Name = "label11";
      this.label11.Size = new Size(65, 12);
      this.label11.TabIndex = 3;
      this.label11.Text = "应用程序：";
      this.label12.AutoSize = true;
      this.label12.Location = new Point(36, 78);
      this.label12.Name = "label12";
      this.label12.Size = new Size(53, 12);
      this.label12.TabIndex = 5;
      this.label12.Text = "注册表：";
      this.cboReg.FormattingEnabled = true;
      this.cboReg.Location = new Point(92, 74);
      this.cboReg.Name = "cboReg";
      this.cboReg.Size = new Size(208, 20);
      this.cboReg.TabIndex = 6;
      this.cboReg.TextChanged += new EventHandler(this.cboReg_TextChanged);
      this.txtAss.FormattingEnabled = true;
      this.txtAss.Location = new Point(417, 74);
      this.txtAss.Name = "txtAss";
      this.txtAss.Size = new Size(208, 20);
      this.txtAss.TabIndex = 6;
      this.label17.AutoSize = true;
      this.label17.Location = new Point(335, 131);
      this.label17.Name = "label17";
      this.label17.Size = new Size(77, 12);
      this.label17.TabIndex = 21;
      this.label17.Text = "SaPassword：";
      this.txtSourceAdress.Location = new Point(417, 20);
      this.txtSourceAdress.Name = "txtSourceAdress";
      this.txtSourceAdress.Size = new Size(208, 21);
      this.txtSourceAdress.TabIndex = 20;
      this.txtDBName.Location = new Point(417, 100);
      this.txtDBName.Name = "txtDBName";
      this.txtDBName.Size = new Size(208, 21);
      this.txtDBName.TabIndex = 20;
      this.label15.AutoSize = true;
      this.label15.Location = new Point(23, 131);
      this.label15.Name = "label15";
      this.label15.Size = new Size(65, 12);
      this.label15.TabIndex = 19;
      this.label15.Text = "UserName：";
      this.txtServerName2.Items.AddRange(new object[5]
      {
        (object) "10.5.10.75\\SQL2012_LY",
        (object) "10.5.10.75\\SQL2008R2_LY",
        (object) "10.5.10.75\\SQL2008_LY",
        (object) "10.5.10.75\\SQL2005_LY",
        (object) "10.5.10.75\\SQL2000"
      });
      this.txtServerName2.Location = new Point(92, 100);
      this.txtServerName2.Name = "txtServerName2";
      this.txtServerName2.Size = new Size(208, 20);
      this.txtServerName2.TabIndex = 18;
      this.txtServerName2.Text = "10.5.10.75\\sql2008R2_LY";
      this.txtServerName2.SelectedIndexChanged += new EventHandler(this.txtServerName2_SelectedIndexChanged);
      this.label14.AutoSize = true;
      this.label14.Location = new Point(359, 104);
      this.label14.Name = "label14";
      this.label14.Size = new Size(53, 12);
      this.label14.TabIndex = 17;
      this.label14.Text = "DBName：";
      this.cboUserName.DisplayMember = "team_ly";
      this.cboUserName.FormattingEnabled = true;
      this.cboUserName.Items.AddRange(new object[3]
      {
        (object) "sa",
        (object) "team_ly",
        (object) "team_cy"
      });
      this.cboUserName.Location = new Point(92, (int) sbyte.MaxValue);
      this.cboUserName.Name = "cboUserName";
      this.cboUserName.Size = new Size(208, 20);
      this.cboUserName.TabIndex = 23;
      this.cboUserName.Text = "team_ly";
      this.label13.AutoSize = true;
      this.label13.Location = new Point(11, 104);
      this.label13.Name = "label13";
      this.label13.Size = new Size(77, 12);
      this.label13.TabIndex = 15;
      this.label13.Text = "ServerName：";
      this.cboPwd.FormattingEnabled = true;
      this.cboPwd.Items.AddRange(new object[1]
      {
        (object) "95938"
      });
      this.cboPwd.Location = new Point(417, (int) sbyte.MaxValue);
      this.cboPwd.Name = "cboPwd";
      this.cboPwd.Size = new Size(208, 20);
      this.cboPwd.TabIndex = 24;
      this.cboPwd.Text = "95938";
      this.groupBox2.ContextMenuStrip = this.contextMenuStrip1;
      this.groupBox2.Controls.Add((Control) this.cbVersion);
      this.groupBox2.Controls.Add((Control) this.radioButton3);
      this.groupBox2.Controls.Add((Control) this.radioButton2);
      this.groupBox2.Controls.Add((Control) this.radioButton1);
      this.groupBox2.Controls.Add((Control) this.label21);
      this.groupBox2.Controls.Add((Control) this.txtVersion);
      this.groupBox2.Controls.Add((Control) this.txtWorkFlowVsersion);
      this.groupBox2.Controls.Add((Control) this.label20);
      this.groupBox2.Controls.Add((Control) this.txtMapVersion);
      this.groupBox2.Controls.Add((Control) this.label19);
      this.groupBox2.Location = new Point(240, 244);
      this.groupBox2.Name = "groupBox2";
      this.groupBox2.Size = new Size(635, 85);
      this.groupBox2.TabIndex = 35;
      this.groupBox2.TabStop = false;
      this.groupBox2.Text = "版本信息";
      this.cbVersion.FormattingEnabled = true;
      this.cbVersion.Items.AddRange(new object[5]
      {
        (object) "Cbgl",
        (object) "Slxt",
        (object) "Qmys",
        (object) "Xmjd",
        (object) "PubProject"
      });
      this.cbVersion.Location = new Point(328, 25);
      this.cbVersion.Name = "cbVersion";
      this.cbVersion.Size = new Size(85, 20);
      this.cbVersion.TabIndex = 4;
      this.cbVersion.Text = "Slxt";
      this.cbVersion.SelectedIndexChanged += new EventHandler(this.cbVersion_SelectedIndexChanged);
      this.radioButton3.AutoSize = true;
      this.radioButton3.Location = new Point(241, 27);
      this.radioButton3.Name = "radioButton3";
      this.radioButton3.Size = new Size(59, 16);
      this.radioButton3.TabIndex = 3;
      this.radioButton3.Text = "数据库";
      this.radioButton3.UseVisualStyleBackColor = true;
      this.radioButton3.CheckedChanged += new EventHandler(this.radioButton3_CheckedChanged);
      this.radioButton2.AutoSize = true;
      this.radioButton2.Location = new Point(163, 27);
      this.radioButton2.Name = "radioButton2";
      this.radioButton2.Size = new Size(65, 16);
      this.radioButton2.TabIndex = 3;
      this.radioButton2.Text = "License";
      this.radioButton2.UseVisualStyleBackColor = true;
      this.radioButton2.CheckedChanged += new EventHandler(this.radioButton2_CheckedChanged);
      this.radioButton1.AutoSize = true;
      this.radioButton1.Checked = true;
      this.radioButton1.Location = new Point(95, 27);
      this.radioButton1.Name = "radioButton1";
      this.radioButton1.Size = new Size(47, 16);
      this.radioButton1.TabIndex = 3;
      this.radioButton1.TabStop = true;
      this.radioButton1.Text = "文件";
      this.radioButton1.UseVisualStyleBackColor = true;
      this.radioButton1.CheckedChanged += new EventHandler(this.radioButton1_CheckedChanged);
      this.label21.AutoSize = true;
      this.label21.Location = new Point(23, 31);
      this.label21.Name = "label21";
      this.label21.Size = new Size(65, 12);
      this.label21.TabIndex = 2;
      this.label21.Text = "版本来源：";
      this.txtVersion.BackColor = SystemColors.Control;
      this.txtVersion.Location = new Point(417, 24);
      this.txtVersion.Name = "txtVersion";
      this.txtVersion.Size = new Size(205, 21);
      this.txtVersion.TabIndex = 1;
      this.toolTip1.SetToolTip((Control) this.txtVersion, "双击查询版本号");
      this.txtVersion.DoubleClick += new EventHandler(this.txtVersion_DoubleClick);
      this.txtWorkFlowVsersion.BackColor = SystemColors.Control;
      this.txtWorkFlowVsersion.Location = new Point(417, 56);
      this.txtWorkFlowVsersion.Name = "txtWorkFlowVsersion";
      this.txtWorkFlowVsersion.Size = new Size(208, 21);
      this.txtWorkFlowVsersion.TabIndex = 1;
      this.toolTip1.SetToolTip((Control) this.txtWorkFlowVsersion, "双击查询版本号");
      this.txtWorkFlowVsersion.DoubleClick += new EventHandler(this.txtWorkFlowVsersion_DoubleClick);
      this.label20.AutoSize = true;
      this.label20.Location = new Point(336, 58);
      this.label20.Name = "label20";
      this.label20.Size = new Size(77, 12);
      this.label20.TabIndex = 0;
      this.label20.Text = "工作流版本：";
      this.txtMapVersion.BackColor = SystemColors.Control;
      this.txtMapVersion.Location = new Point(92, 56);
      this.txtMapVersion.Name = "txtMapVersion";
      this.txtMapVersion.Size = new Size(208, 21);
      this.txtMapVersion.TabIndex = 1;
      this.toolTip1.SetToolTip((Control) this.txtMapVersion, "双击查询版本号");
      this.txtMapVersion.DoubleClick += new EventHandler(this.txtMapVersion_DoubleClick);
      this.label19.AutoSize = true;
      this.label19.Location = new Point(29, 59);
      this.label19.Name = "label19";
      this.label19.Size = new Size(59, 12);
      this.label19.TabIndex = 0;
      this.label19.Text = "Map版本：";
      this.groupBox1.Controls.Add((Control) this.button19);
      this.groupBox1.Controls.Add((Control) this.button24);
      this.groupBox1.Controls.Add((Control) this.button17);
      this.groupBox1.Controls.Add((Control) this.button16);
      this.groupBox1.Controls.Add((Control) this.button18);
      this.groupBox1.Controls.Add((Control) this.button22);
      this.groupBox1.Controls.Add((Control) this.button15);
      this.groupBox1.Location = new Point(240, 338);
      this.groupBox1.Name = "groupBox1";
      this.groupBox1.Size = new Size(627, 65);
      this.groupBox1.TabIndex = 34;
      this.groupBox1.TabStop = false;
      this.groupBox1.Text = "数据库";
      this.button19.Location = new Point(376, 20);
      this.button19.Name = "button19";
      this.button19.Size = new Size(82, 23);
      this.button19.TabIndex = 0;
      this.button19.Text = "快速建模";
      this.button19.UseVisualStyleBackColor = true;
      this.button19.Click += new EventHandler(this.button19_Click);
      this.button24.Location = new Point(266, 20);
      this.button24.Name = "button24";
      this.button24.Size = new Size(82, 23);
      this.button24.TabIndex = 0;
      this.button24.Text = "业务参数";
      this.button24.UseVisualStyleBackColor = true;
      this.button24.Click += new EventHandler(this.button24_Click);
      this.button17.Location = new Point(182, 20);
      this.button17.Name = "button17";
      this.button17.Size = new Size(82, 23);
      this.button17.TabIndex = 0;
      this.button17.Text = "3.*初始化";
      this.button17.UseVisualStyleBackColor = true;
      this.button17.Click += new EventHandler(this.button17_Click);
      this.button16.Location = new Point(97, 20);
      this.button16.Name = "button16";
      this.button16.Size = new Size(82, 23);
      this.button16.TabIndex = 0;
      this.button16.Text = "MySite置空";
      this.button16.UseVisualStyleBackColor = true;
      this.button16.Click += new EventHandler(this.button16_Click);
      this.button18.Location = new Point(458, 20);
      this.button18.Name = "button18";
      this.button18.Size = new Size(82, 23);
      this.button18.TabIndex = 4;
      this.button18.Text = "PROFILER";
      this.button18.UseVisualStyleBackColor = true;
      this.button18.Click += new EventHandler(this.button18_Click_1);
      this.button22.Location = new Point(540, 20);
      this.button22.Name = "button22";
      this.button22.Size = new Size(82, 23);
      this.button22.TabIndex = 4;
      this.button22.Text = "打开SSMS";
      this.button22.UseVisualStyleBackColor = true;
      this.button22.Click += new EventHandler(this.button22_Click);
      this.button15.Location = new Point(12, 20);
      this.button15.Name = "button15";
      this.button15.Size = new Size(82, 23);
      this.button15.TabIndex = 0;
      this.button15.Text = "密码置空";
      this.button15.UseVisualStyleBackColor = true;
      this.button15.Click += new EventHandler(this.button15_Click);
      this.pictureBox1.BackColor = System.Drawing.Color.Gray;
      this.pictureBox1.Location = new Point(499, 13);
      this.pictureBox1.Name = "pictureBox1";
      this.pictureBox1.Size = new Size(12, 12);
      this.pictureBox1.TabIndex = 33;
      this.pictureBox1.TabStop = false;
      this.pictureBox1.Tag = (object) "";
      this.comboBox1.DisplayMember = "编译(Release)";
      this.comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
      this.comboBox1.FormattingEnabled = true;
      this.comboBox1.Items.AddRange(new object[4]
      {
        (object) "编译(Debug)",
        (object) "编译(Release)",
        (object) "重新编译(Debug)",
        (object) "重新编译(Release)"
      });
      this.comboBox1.Location = new Point(654, 9);
      this.comboBox1.Name = "comboBox1";
      this.comboBox1.Size = new Size(140, 20);
      this.comboBox1.TabIndex = 32;
      this.label18.AutoSize = true;
      this.label18.Location = new Point(587, 214);
      this.label18.Name = "label18";
      this.label18.Size = new Size(65, 12);
      this.label18.TabIndex = 31;
      this.label18.Text = "打开站点：";
      this.lblIISVer.AutoSize = true;
      this.lblIISVer.ForeColor = SystemColors.Highlight;
      this.lblIISVer.Location = new Point(561, 13);
      this.lblIISVer.Name = "lblIISVer";
      this.lblIISVer.Size = new Size(23, 12);
      this.lblIISVer.TabIndex = 29;
      this.lblIISVer.TabStop = true;
      this.lblIISVer.Text = "iis";
      this.lblIISVer.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lblIISVer_LinkClicked);
      this.button11.Location = new Point(794, 8);
      this.button11.Name = "button11";
      this.button11.Size = new Size(68, 23);
      this.button11.TabIndex = 27;
      this.button11.Text = "编译";
      this.button11.UseVisualStyleBackColor = true;
      this.button11.Click += new EventHandler(this.button11_Click);
      this.button14.Location = new Point(419, 8);
      this.button14.Name = "button14";
      this.button14.Size = new Size(75, 23);
      this.button14.TabIndex = 27;
      this.button14.Text = "去目录只读";
      this.button14.UseVisualStyleBackColor = true;
      this.button14.Click += new EventHandler(this.button14_Click);
      this.button13.Location = new Point(326, 8);
      this.button13.Name = "button13";
      this.button13.Size = new Size(91, 23);
      this.button13.TabIndex = 26;
      this.button13.Text = "打开解决方案";
      this.button13.UseVisualStyleBackColor = true;
      this.button13.Click += new EventHandler(this.button13_Click);
      this.button12.Location = new Point(242, 8);
      this.button12.Name = "button12";
      this.button12.Size = new Size(82, 23);
      this.button12.TabIndex = 26;
      this.button12.Text = "打开目录";
      this.button12.UseVisualStyleBackColor = true;
      this.button12.Click += new EventHandler(this.txtSitePath_MouseDoubleClick);
      this.button20.ForeColor = System.Drawing.Color.Black;
      this.button20.Location = new Point(477, 209);
      this.button20.Name = "button20";
      this.button20.Size = new Size(83, 23);
      this.button20.TabIndex = 25;
      this.button20.Text = "(255)狗充值";
      this.button20.UseVisualStyleBackColor = true;
      this.button20.Click += new EventHandler(this.button20_Click);
      this.button10.Location = new Point(317, 209);
      this.button10.Name = "button10";
      this.button10.Size = new Size(84, 23);
      this.button10.TabIndex = 25;
      this.button10.Text = "回收程序池";
      this.button10.UseVisualStyleBackColor = true;
      this.button10.Click += new EventHandler(this.button10_Click);
      this.button23.Location = new Point(402, 209);
      this.button23.Name = "button23";
      this.button23.Size = new Size(75, 23);
      this.button23.TabIndex = 25;
      this.button23.Text = "分享站点";
      this.button23.UseVisualStyleBackColor = true;
      this.button23.Click += new EventHandler(this.button23_Click);
      this.button9.Location = new Point(240, 209);
      this.button9.Name = "button9";
      this.button9.Size = new Size(75, 23);
      this.button9.TabIndex = 25;
      this.button9.Text = "保存注册表";
      this.button9.UseVisualStyleBackColor = true;
      this.button9.Click += new EventHandler(this.button9_Click);
      this.btn_CreateSite.Location = new Point(192, 9);
      this.btn_CreateSite.Name = "btn_CreateSite";
      this.btn_CreateSite.Size = new Size(43, 21);
      this.btn_CreateSite.TabIndex = 0;
      this.btn_CreateSite.Text = "创建";
      this.btn_CreateSite.UseVisualStyleBackColor = true;
      this.btn_CreateSite.Click += new EventHandler(this.btn_CreateSite_Click);
      this.button8.Location = new Point(147, 9);
      this.button8.Name = "button8";
      this.button8.Size = new Size(43, 21);
      this.button8.TabIndex = 30;
      this.button8.Text = "获取";
      this.button8.UseVisualStyleBackColor = true;
      this.button8.Click += new EventHandler(this.button8_Click);
      this.tabControl1.Controls.Add((Control) this.tabPage4);
      this.tabControl1.Controls.Add((Control) this.tabPage1);
      this.tabControl1.Controls.Add((Control) this.tabPage2);
      this.tabControl1.Controls.Add((Control) this.tpageTextMager);
      this.tabControl1.Dock = DockStyle.Fill;
      this.tabControl1.HotTrack = true;
      this.tabControl1.Location = new Point(0, 0);
      this.tabControl1.Multiline = true;
      this.tabControl1.Name = "tabControl1";
      this.tabControl1.SelectedIndex = 0;
      this.tabControl1.ShowToolTips = true;
      this.tabControl1.Size = new Size(891, 445);
      this.tabControl1.TabIndex = 14;
      this.tpageTextMager.Controls.Add((Control) this.splitContainer1);
      this.tpageTextMager.Location = new Point(4, 22);
      this.tpageTextMager.Name = "tpageTextMager";
      this.tpageTextMager.Padding = new Padding(3);
      this.tpageTextMager.Size = new Size(883, 419);
      this.tpageTextMager.TabIndex = 6;
      this.tpageTextMager.Text = "文件合并";
      this.tpageTextMager.UseVisualStyleBackColor = true;
      this.splitContainer1.Dock = DockStyle.Fill;
      this.splitContainer1.Location = new Point(3, 3);
      this.splitContainer1.Name = "splitContainer1";
      this.splitContainer1.Orientation = Orientation.Horizontal;
      this.splitContainer1.Panel1.Controls.Add((Control) this.tmListFiles);
      this.splitContainer1.Panel1.Controls.Add((Control) this.toolStrip1);
      this.splitContainer1.Panel2.Controls.Add((Control) this.tmBtnExec);
      this.splitContainer1.Panel2.Controls.Add((Control) this.tmBtnSavePathSelect);
      this.splitContainer1.Panel2.Controls.Add((Control) this.tmOutputPath);
      this.splitContainer1.Panel2.Controls.Add((Control) this.label6);
      this.splitContainer1.Size = new Size(877, 413);
      this.splitContainer1.SplitterDistance = 382;
      this.splitContainer1.TabIndex = 0;
      this.tmListFiles.Dock = DockStyle.Fill;
      this.tmListFiles.Location = new Point(0, 25);
      this.tmListFiles.MultiSelect = false;
      this.tmListFiles.Name = "tmListFiles";
      this.tmListFiles.Size = new Size(877, 357);
      this.tmListFiles.TabIndex = 1;
      this.tmListFiles.UseCompatibleStateImageBehavior = false;
      this.tmListFiles.View = View.List;
      this.toolStrip1.Items.AddRange(new ToolStripItem[5]
      {
        (ToolStripItem) this.tmTsBtnSelectFiles,
        (ToolStripItem) this.tmTsMoveUp,
        (ToolStripItem) this.tmTsMoveDown,
        (ToolStripItem) this.tmTsBtnDeleteFile,
        (ToolStripItem) this.tmTsClearAll
      });
      this.toolStrip1.Location = new Point(0, 0);
      this.toolStrip1.Name = "toolStrip1";
      this.toolStrip1.Size = new Size(877, 25);
      this.toolStrip1.TabIndex = 0;
      this.toolStrip1.Text = "toolStrip1";
      this.tmTsBtnSelectFiles.DisplayStyle = ToolStripItemDisplayStyle.Text;
      this.tmTsBtnSelectFiles.ImageTransparentColor = System.Drawing.Color.Magenta;
      this.tmTsBtnSelectFiles.Name = "tmTsBtnSelectFiles";
      this.tmTsBtnSelectFiles.Size = new Size(60, 22);
      this.tmTsBtnSelectFiles.Text = "选择文件";
      this.tmTsBtnSelectFiles.Click += new EventHandler(this.tmTsBtnSelectFiles_Click);
      this.tmTsMoveUp.DisplayStyle = ToolStripItemDisplayStyle.Text;
      this.tmTsMoveUp.ImageTransparentColor = System.Drawing.Color.Magenta;
      this.tmTsMoveUp.Name = "tmTsMoveUp";
      this.tmTsMoveUp.Size = new Size(36, 22);
      this.tmTsMoveUp.Text = "上移";
      this.tmTsMoveUp.Click += new EventHandler(this.tmTsMoveUp_Click);
      this.tmTsMoveDown.DisplayStyle = ToolStripItemDisplayStyle.Text;
      this.tmTsMoveDown.ImageTransparentColor = System.Drawing.Color.Magenta;
      this.tmTsMoveDown.Name = "tmTsMoveDown";
      this.tmTsMoveDown.Size = new Size(36, 22);
      this.tmTsMoveDown.Text = "下移";
      this.tmTsMoveDown.Click += new EventHandler(this.tmTsMoveDown_Click);
      this.tmTsBtnDeleteFile.DisplayStyle = ToolStripItemDisplayStyle.Text;
      this.tmTsBtnDeleteFile.ImageTransparentColor = System.Drawing.Color.Magenta;
      this.tmTsBtnDeleteFile.Name = "tmTsBtnDeleteFile";
      this.tmTsBtnDeleteFile.Size = new Size(36, 22);
      this.tmTsBtnDeleteFile.Text = "移除";
      this.tmTsBtnDeleteFile.Click += new EventHandler(this.tmTsBtnDeleteFile_Click);
      this.tmTsClearAll.DisplayStyle = ToolStripItemDisplayStyle.Text;
      this.tmTsClearAll.ImageTransparentColor = System.Drawing.Color.Magenta;
      this.tmTsClearAll.Name = "tmTsClearAll";
      this.tmTsClearAll.Size = new Size(36, 22);
      this.tmTsClearAll.Text = "清空";
      this.tmTsClearAll.Click += new EventHandler(this.tmTsClearAll_Click);
      this.tmBtnExec.Location = new Point(799, 1);
      this.tmBtnExec.Name = "tmBtnExec";
      this.tmBtnExec.Size = new Size(75, 23);
      this.tmBtnExec.TabIndex = 3;
      this.tmBtnExec.Text = "开始合并";
      this.tmBtnExec.UseVisualStyleBackColor = true;
      this.tmBtnExec.Click += new EventHandler(this.tmBtnExec_Click);
      this.tmBtnSavePathSelect.Location = new Point(718, 1);
      this.tmBtnSavePathSelect.Name = "tmBtnSavePathSelect";
      this.tmBtnSavePathSelect.Size = new Size(75, 23);
      this.tmBtnSavePathSelect.TabIndex = 2;
      this.tmBtnSavePathSelect.Text = "选择";
      this.tmBtnSavePathSelect.UseVisualStyleBackColor = true;
      this.tmBtnSavePathSelect.Click += new EventHandler(this.tmBtnSavePathSelect_Click);
      this.tmOutputPath.Location = new Point(64, 3);
      this.tmOutputPath.Name = "tmOutputPath";
      this.tmOutputPath.Size = new Size(648, 21);
      this.tmOutputPath.TabIndex = 1;
      this.label6.AutoSize = true;
      this.label6.Location = new Point(5, 6);
      this.label6.Name = "label6";
      this.label6.Size = new Size(65, 12);
      this.label6.TabIndex = 0;
      this.label6.Text = "保存路径：";
      this.contextMenuStrip2.Items.AddRange(new ToolStripItem[1]
      {
        (ToolStripItem) this.用户设置ToolStripMenuItem
      });
      this.contextMenuStrip2.Name = "contextMenuStrip2";
      this.contextMenuStrip2.Size = new Size(125, 26);
      this.用户设置ToolStripMenuItem.Name = "用户设置ToolStripMenuItem";
      this.用户设置ToolStripMenuItem.Size = new Size(124, 22);
      this.用户设置ToolStripMenuItem.Text = "用户设置";
      this.用户设置ToolStripMenuItem.Click += new EventHandler(this.用户设置ToolStripMenuItem_Click);
      this.notifyIcon1.BalloonTipIcon = ToolTipIcon.Info;
      this.notifyIcon1.ContextMenuStrip = this.notifyContextMenu;
      this.notifyIcon1.Icon = (Icon) componentResourceManager.GetObject("notifyIcon1.Icon");
      this.notifyIcon1.Text = "我的小工具";
      this.notifyIcon1.Visible = true;
      this.notifyIcon1.DoubleClick += new EventHandler(this.notifyIcon1_DoubleClick);
      this.notifyContextMenu.Items.AddRange(new ToolStripItem[3]
      {
        (ToolStripItem) this.tmNTsMainUI,
        (ToolStripItem) this.设置ToolStripMenuItem,
        (ToolStripItem) this.tmNTsExit
      });
      this.notifyContextMenu.Name = "notifyContextMenu";
      this.notifyContextMenu.Size = new Size(113, 70);
      this.tmNTsMainUI.Name = "tmNTsMainUI";
      this.tmNTsMainUI.Size = new Size(112, 22);
      this.tmNTsMainUI.Text = "主面板";
      this.tmNTsMainUI.Click += new EventHandler(this.tmNTsMainUI_Click);
      this.tmNTsExit.Name = "tmNTsExit";
      this.tmNTsExit.Size = new Size(112, 22);
      this.tmNTsExit.Text = "退出";
      this.tmNTsExit.Click += new EventHandler(this.tmNTsExit_Click);
      this.backgroundWorker1.WorkerSupportsCancellation = true;
      this.设置ToolStripMenuItem.Name = "设置ToolStripMenuItem";
      this.设置ToolStripMenuItem.Size = new Size(152, 22);
      this.设置ToolStripMenuItem.Text = "设置";
      this.设置ToolStripMenuItem.Click += new EventHandler(this.设置ToolStripMenuItem_Click);
      this.设置ToolStripMenuItem1.Name = "设置ToolStripMenuItem1";
      this.设置ToolStripMenuItem1.Size = new Size(160, 22);
      this.设置ToolStripMenuItem1.Text = "设置";
      this.设置ToolStripMenuItem1.Click += new EventHandler(this.设置ToolStripMenuItem1_Click);
      this.AutoScaleDimensions = new SizeF(6f, 12f);
      this.AutoScaleMode = AutoScaleMode.Font;
      this.ClientSize = new Size(891, 445);
      this.Controls.Add((Control) this.tabControl1);
      this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
      this.MaximizeBox = false;
      this.Name = "我的工具";
      this.StartPosition = FormStartPosition.CenterScreen;
      this.Text = "开发辅助工具";
      this.FormClosing += new FormClosingEventHandler(this.我的工具_FormClosing);
      this.Load += new EventHandler(this.注册表_Load);
      this.Shown += new EventHandler(this.我的工具_Shown);
      this.tabPage2.ResumeLayout(false);
      this.panel1.ResumeLayout(false);
      this.panel1.PerformLayout();
      this.tabPage1.ResumeLayout(false);
      this.panel3.ResumeLayout(false);
      this.panel2.ResumeLayout(false);
      this.groupBox4.ResumeLayout(false);
      this.groupBox4.PerformLayout();
      this.tabPage4.ResumeLayout(false);
      this.tabPage4.PerformLayout();
      this.panelForHide.ResumeLayout(false);
      this.panelForHide.PerformLayout();
      this.groupBox3.ResumeLayout(false);
      this.groupBox3.PerformLayout();
      this.contextMenuStrip1.ResumeLayout(false);
      this.contextMenuStrip1.PerformLayout();
      this.groupBox2.ResumeLayout(false);
      this.groupBox2.PerformLayout();
      this.groupBox1.ResumeLayout(false);
      ((ISupportInitialize) this.pictureBox1).EndInit();
      this.tabControl1.ResumeLayout(false);
      this.tpageTextMager.ResumeLayout(false);
      this.splitContainer1.Panel1.ResumeLayout(false);
      this.splitContainer1.Panel1.PerformLayout();
      this.splitContainer1.Panel2.ResumeLayout(false);
      this.splitContainer1.Panel2.PerformLayout();
      this.splitContainer1.ResumeLayout(false);
      this.toolStrip1.ResumeLayout(false);
      this.toolStrip1.PerformLayout();
      this.contextMenuStrip2.ResumeLayout(false);
      this.notifyContextMenu.ResumeLayout(false);
      this.ResumeLayout(false);
    }

    public class MyRegKey
    {
      private string _saPassword;

      public string ServerName { get; set; }

      public string KeyName { get; set; }

      public string DBName { get; set; }

      public string UserName { get; set; }

      public string SaPassword
      {
        get
        {
          return Cryptography.DeCode(this._saPassword);
        }
        set
        {
          this._saPassword = value;
        }
      }
    }
  }
}
